operator== and != should be const
This commit is contained in:
parent
04a4e3b374
commit
91ac77a058
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue