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;
|
||||
}
|
||||
|
||||
bool operator==(const const_iterator &rhs)
|
||||
bool operator==(const const_iterator &rhs) const
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue