diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-14 18:53:40 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-14 18:57:02 +0100 |
commit | 8b6f57dc6a38c5ff3a696b8a0334b83839c4a73d (patch) | |
tree | ebe4b320dbe9f7554b92e93b572deb52e996b979 /asl/containers/intrusive_list.hpp | |
parent | d1bb5a83f6dc697ff0f506374b42ba32f6db89a1 (diff) |
Pass string_view, span, and iterators by value
Diffstat (limited to 'asl/containers/intrusive_list.hpp')
-rw-r--r-- | asl/containers/intrusive_list.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/asl/containers/intrusive_list.hpp b/asl/containers/intrusive_list.hpp index 8cafdff..81816ec 100644 --- a/asl/containers/intrusive_list.hpp +++ b/asl/containers/intrusive_list.hpp @@ -151,7 +151,7 @@ public: , m_advanced{end} {} - constexpr bool operator==(const generic_iterator& other) const = default; + constexpr bool operator==(this generic_iterator, generic_iterator other) = default; constexpr generic_iterator& operator++() { @@ -167,9 +167,9 @@ public: }; } - constexpr TT& operator*() const { return *m_node; } + constexpr TT& operator*(this generic_iterator self) { return *self.m_node; } - constexpr TT* operator->() const { return m_node; } + constexpr TT* operator->(this generic_iterator self) { return self.m_node; } }; using iterator = generic_iterator<T>; |