mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-03 06:24:44 +02:00
Use iterator_arrow_result to support raw pointers as iterators.
This commit is contained in:
@@ -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