iterator: avoid ignored const on reference

This commit is contained in:
Danny Robson 2015-01-10 20:07:39 +11:00
parent ad53b9f2de
commit b58fdaea9d

View File

@ -59,7 +59,7 @@ class referencing_iterator {
bool operator> (const referencing_iterator<Base> &rhs) { return m_base > rhs.m_base; }
bool operator< (const referencing_iterator<Base> &rhs) { return m_base < rhs.m_base; }
const reference operator*() const
const value_type& operator*() const
{ return **m_base; }
reference operator*()
{ return **m_base; }