Commit d965b9a3 authored by Xavier Thompson's avatar Xavier Thompson

Fix cypclass builtin iterator implementation

parent deec7f35
...@@ -26,7 +26,7 @@ cdef extern from * nogil: ...@@ -26,7 +26,7 @@ cdef extern from * nogil:
cy_iterator_t(cy_iterator_t && rhs) : cy_iterator_t() cy_iterator_t(cy_iterator_t && rhs) : cy_iterator_t()
{ {
std::swap(*this, rhs); swap(*this, rhs);
} }
cy_iterator_t & operator=(cy_iterator_t rhs) cy_iterator_t & operator=(cy_iterator_t rhs)
...@@ -37,7 +37,7 @@ cdef extern from * nogil: ...@@ -37,7 +37,7 @@ cdef extern from * nogil:
cy_iterator_t & operator=(base_iterator_t rhs) cy_iterator_t & operator=(base_iterator_t rhs)
{ {
swap(static_cast<base&>(*this), rhs); static_cast<base&>(*this) = rhs;
if (urange != NULL) { if (urange != NULL) {
urange->_active_iterators--; urange->_active_iterators--;
urange = NULL; urange = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment