summaryrefslogtreecommitdiff
path: root/src/flags.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-10-25 20:40:04 +1100
committerMaxime Coste <mawww@kakoune.org>2023-10-25 20:40:04 +1100
commit96884193ddad76530a09a1b095180b0ca8257b7c (patch)
treeb218d628c370dffeb77a02e1e0bfcdbf0173af42 /src/flags.hh
parentd1c8622dc7ac1d0e2ec07fa7034e4396dffb244f (diff)
Remove redundant comparison operators
Since C++20 (a != b) get automatically rewritten as !(a == b) if the != operator does not exist.
Diffstat (limited to 'src/flags.hh')
-rw-r--r--src/flags.hh1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/flags.hh b/src/flags.hh
index 6d4764f3..4cecd5a5 100644
--- a/src/flags.hh
+++ b/src/flags.hh
@@ -39,7 +39,6 @@ struct TestableFlags
constexpr operator UnderlyingType<Flags>() const { return (UnderlyingType<Flags>)value; }
constexpr bool operator==(const TestableFlags<Flags>& other) const { return value == other.value; }
- constexpr bool operator!=(const TestableFlags<Flags>& other) const { return value != other.value; }
};
template<WithBitOps Flags>