forked from boostorg/intrusive
Use iterator_arrow_result to support raw pointers as iterators.
This commit is contained in:
1 parent
eebabce934
commit
9e326ac254
1 file changed
+1
-1
@@ -68,7 +68,7 @@ class reverse_iterator
|
||||
{ It temp(m_current); --temp; return *temp; }
|
||||
|
||||
pointer operator->() const
|
||||
{ It temp(m_current); --temp; return temp.operator->(); }
|
||||
{ It temp(m_current); --temp; return iterator_arrow_result(temp); }
|
||||
|
||||
reference operator[](difference_type off) const
|
||||
{ return this->m_current[-off - 1]; }
|
||||
|
||||
Reference in new issue
Block a user