mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-06 07:54:41 +02:00
Fix error in reverse_iterator::operator[]
This commit is contained in:
@@ -63,7 +63,7 @@ class reverse_iterator
|
|||||||
{ It temp(m_current); --temp; return temp.operator->(); }
|
{ It temp(m_current); --temp; return temp.operator->(); }
|
||||||
|
|
||||||
reference operator[](difference_type off) const
|
reference operator[](difference_type off) const
|
||||||
{ return this->m_current[-off]; }
|
{ return this->m_current[-off-1]; }
|
||||||
|
|
||||||
reverse_iterator& operator++()
|
reverse_iterator& operator++()
|
||||||
{ --m_current; return *this; }
|
{ --m_current; return *this; }
|
||||||
|
Reference in New Issue
Block a user