diff options
| author | Maxime Coste <mawww@kakoune.org> | 2023-10-25 21:06:52 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2023-10-25 21:06:52 +1100 |
| commit | 2fa55be40a787be71f4360fd4e36b7a790c74fa6 (patch) | |
| tree | 4ba6c0bc844f2d4ce6a004ae71ef52aa21f95448 /src/option.hh | |
| parent | 96884193ddad76530a09a1b095180b0ca8257b7c (diff) | |
Default comparison operators that can be
Diffstat (limited to 'src/option.hh')
| -rw-r--r-- | src/option.hh | 5 |
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> |
