diff --git a/include/boost/geometry/iterators/closing_iterator.hpp b/include/boost/geometry/iterators/closing_iterator.hpp index 26b7f4d78..288bcbe71 100644 --- a/include/boost/geometry/iterators/closing_iterator.hpp +++ b/include/boost/geometry/iterators/closing_iterator.hpp @@ -55,11 +55,10 @@ struct closing_iterator this->base_reference() = m_end; } - //inline bool equal(closing_iterator const& other) const - inline bool operator==(closing_iterator const& other) const + inline bool equal(closing_iterator const& other) const { - return this->base() == other->base() - && this->m_beyond == other->m_beyond; + return this->base() == other.base() + && this->m_beyond == other.m_beyond; }