summaryrefslogtreecommitdiff
path: root/src/ranges.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/ranges.hh
parent96884193ddad76530a09a1b095180b0ca8257b7c (diff)
Default comparison operators that can be
Diffstat (limited to 'src/ranges.hh')
-rw-r--r--src/ranges.hh6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ranges.hh b/src/ranges.hh
index bf55ca09..7b568cd2 100644
--- a/src/ranges.hh
+++ b/src/ranges.hh
@@ -510,11 +510,7 @@ struct ConcatView
Iterator& operator++() { if (is2()) ++m_it2; else ++m_it1; return *this; }
Iterator operator++(int) { auto copy = *this; ++*this; return copy; }
- friend bool operator==(const Iterator& lhs, const Iterator& rhs)
- {
- return lhs.m_it1 == rhs.m_it1 and lhs.m_end1 == rhs.m_end1 and
- lhs.m_it2 == rhs.m_it2;
- }
+ friend bool operator==(const Iterator& lhs, const Iterator& rhs) = default;
private:
bool is2() const { return m_it1 == m_end1; }