operator== and != should be const

This commit is contained in:
eelke 2022-04-10 09:26:23 +02:00
parent 04a4e3b374
commit 91ac77a058

View file

@ -34,12 +34,12 @@ namespace Pgsql {
return *this; return *this;
} }
bool operator==(const const_iterator &rhs) bool operator==(const const_iterator &rhs) const
{ {
return m_row == rhs.m_row && m_col == rhs.m_col; return m_row == rhs.m_row && m_col == rhs.m_col;
} }
bool operator!=(const const_iterator &rhs) bool operator!=(const const_iterator &rhs) const
{ {
return !operator==(rhs); return !operator==(rhs);
} }