diff options
| author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2004-09-20 19:34:58 +0000 |
|---|---|---|
| committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2004-09-20 19:34:58 +0000 |
| commit | 1f16f5e923efdaa0086ab117a0ea1b0598c150b3 (patch) | |
| tree | cc78404f78489cb2a0bce187031dd6d96dbfdfd1 /net/netmap/files | |
| parent | Fix bad C++ code. Unmark BROKEN. (diff) | |
Fix bad C++ code, to unbreak on 5.X and -CURRENT.
Reported by: kris
Approved by: portmgr (marcus), fjoe (mentor, implicit)
Diffstat (limited to 'net/netmap/files')
| -rw-r--r-- | net/netmap/files/patch-belgolib::dirs.h | 9 | ||||
| -rw-r--r-- | net/netmap/files/patch-netmap::misc.h | 18 |
2 files changed, 27 insertions, 0 deletions
diff --git a/net/netmap/files/patch-belgolib::dirs.h b/net/netmap/files/patch-belgolib::dirs.h index 4d912a46559c..27542fb44f9c 100644 --- a/net/netmap/files/patch-belgolib::dirs.h +++ b/net/netmap/files/patch-belgolib::dirs.h @@ -8,3 +8,12 @@ #ifndef __make_dep__ #include <string> +@@ -91,7 +92,7 @@ + { + list<T*> result=ld1; + +- for(list<T*>::const_iterator i = ld2.begin(); i != ld2.end(); i++) ++ for(typename list<T*>::const_iterator i = ld2.begin(); i != ld2.end(); i++) + result.push_back(*i); + + return result; diff --git a/net/netmap/files/patch-netmap::misc.h b/net/netmap/files/patch-netmap::misc.h index 8ba4bdb46e24..4ea51bf3124e 100644 --- a/net/netmap/files/patch-netmap::misc.h +++ b/net/netmap/files/patch-netmap::misc.h @@ -8,3 +8,21 @@ string indent(unsigned); +@@ -21,7 +22,7 @@ + template <class T> + bool contains(list<T>& l, const T& t) + { +- for(list<T>::iterator li = l.begin(); li != l.end(); li++) ++ for(typename list<T>::iterator li = l.begin(); li != l.end(); li++) + if((*li) == t) + return true; + return false; +@@ -31,7 +32,7 @@ + list<T> intersect(list<T>& l1, list<T>& l2) + { + list<T> result; +- for(list<T>::iterator li = l1.begin(); li != l1.end(); li++) ++ for(typename list<T>::iterator li = l1.begin(); li != l1.end(); li++) + if(contains(l2, *li)) + result.push_back(*li); + |
