mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-03 14:34:44 +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->(); }
|
||||
|
||||
reference operator[](difference_type off) const
|
||||
{ return this->m_current[-off]; }
|
||||
{ return this->m_current[-off-1]; }
|
||||
|
||||
reverse_iterator& operator++()
|
||||
{ --m_current; return *this; }
|
||||
|
Reference in New Issue
Block a user