mirror of https://github.com/CGAL/cgal
Added copy constructors/assignment for iterators on gcc-2.
This commit is contained in:
parent
6a16eb1bbd
commit
b814d80a23
|
|
@ -94,6 +94,12 @@ namespace CGALi {
|
|||
In_place_list_iterator() : node(0) {}
|
||||
In_place_list_iterator(T* x) : node(x) {}
|
||||
|
||||
#if defined(__GNUC__) && (__GNUC__ < 3)
|
||||
// added by request of Michael Seel:
|
||||
In_place_list_iterator(const Self& i) { node=i.node; }
|
||||
Self& operator=(const Self& i) { node = i.node; return *this; }
|
||||
#endif
|
||||
|
||||
bool operator==( const Self& x) const { return node == x.node; }
|
||||
bool operator!=( const Self& x) const { return node != x.node; }
|
||||
T& operator*() const { return *node; }
|
||||
|
|
@ -145,6 +151,12 @@ namespace CGALi {
|
|||
In_place_list_const_iterator( Iterator i) : node(&*i) {}
|
||||
In_place_list_const_iterator(const T* x) : node(x) {}
|
||||
|
||||
#if defined(__GNUC__) && (__GNUC__ < 3)
|
||||
// added by request of Michael Seel:
|
||||
In_place_list_const_iterator(const Self& i) { node=i.node; }
|
||||
Self& operator=(const Self& i) { node = i.node; return *this; }
|
||||
#endif
|
||||
|
||||
bool operator==( const Self& x) const { return node == x.node; }
|
||||
bool operator!=( const Self& x) const { return node != x.node; }
|
||||
const T& operator*() const { return *node; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue