summaryrefslogtreecommitdiff
path: root/src/option.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-10-25 21:06:52 +1100
committerMaxime Coste <mawww@kakoune.org>2023-10-25 21:06:52 +1100
commit2fa55be40a787be71f4360fd4e36b7a790c74fa6 (patch)
tree4ba6c0bc844f2d4ce6a004ae71ef52aa21f95448 /src/option.hh
parent96884193ddad76530a09a1b095180b0ca8257b7c (diff)
Default comparison operators that can be
Diffstat (limited to 'src/option.hh')
-rw-r--r--src/option.hh5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/option.hh b/src/option.hh
index d7f75431..732fefca 100644
--- a/src/option.hh
+++ b/src/option.hh
@@ -58,10 +58,7 @@ struct PrefixedList
P prefix;
Vector<T, MemoryDomain::Options> list;
- friend bool operator==(const PrefixedList& lhs, const PrefixedList& rhs)
- {
- return lhs.prefix == rhs.prefix and lhs.list == rhs.list;
- }
+ friend bool operator==(const PrefixedList& lhs, const PrefixedList& rhs) = default;
};
template<typename T>