From 91ac77a058de5531bbad384c957f4288a67748f1 Mon Sep 17 00:00:00 2001 From: eelke Date: Sun, 10 Apr 2022 09:26:23 +0200 Subject: [PATCH] operator== and != should be const --- pgsql/Pgsql_Row.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pgsql/Pgsql_Row.h b/pgsql/Pgsql_Row.h index 9beaf51..de0d4ef 100644 --- a/pgsql/Pgsql_Row.h +++ b/pgsql/Pgsql_Row.h @@ -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); }