From da09da29c42b76d25b69e448814637e19a899740 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 8 Apr 2015 23:16:27 +0100 Subject: [PATCH] Regex comparison operator are const --- src/regex.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/regex.hh b/src/regex.hh index 8d87427e..e6f30187 100644 --- a/src/regex.hh +++ b/src/regex.hh @@ -26,8 +26,8 @@ struct Regex : std::regex : std::regex(begin, end, flags), m_str(begin, end) {} bool empty() const { return m_str.empty(); } - bool operator==(const Regex& other) { return m_str == other.m_str; } - bool operator!=(const Regex& other) { return m_str != other.m_str; } + bool operator==(const Regex& other) const { return m_str == other.m_str; } + bool operator!=(const Regex& other) const { return m_str != other.m_str; } const String& str() const { return m_str; }