Use iterator_arrow_result to support raw pointers as iterators.

This commit is contained in:
Ion Gaztañaga
2015-04-14 14:57:33 +02:00
parent eebabce934
commit 9e326ac254

View File

@@ -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]; }