From 96884193ddad76530a09a1b095180b0ca8257b7c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 25 Oct 2023 20:40:04 +1100 Subject: Remove redundant comparison operators Since C++20 (a != b) get automatically rewritten as !(a == b) if the != operator does not exist. --- src/string_utils.hh | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/string_utils.hh') diff --git a/src/string_utils.hh b/src/string_utils.hh index 13d15018..3cd7c825 100644 --- a/src/string_utils.hh +++ b/src/string_utils.hh @@ -82,8 +82,6 @@ struct WrapView Iterator operator++(int) { auto copy = *this; ++(*this); return copy; } bool operator==(Iterator other) const { return m_remaining == other.m_remaining and m_current == other.m_current; } - bool operator!=(Iterator other) const { return not (*this == other); } - StringView operator*() { return m_current; } private: -- cgit v1.2.3