Silence Clang's C++20 -Wambiguous-reversed-operator.
cbodley took this from https://github.com/Kronuz/cpp-btree/pull/4
Signed-off-by: Casey Bodley <cbodley@redhat.com>
bool operator!=(const const_iterator &x) const {
return node != x.node || position != x.position;
}
+ bool operator==(const iterator& x) const {
+ return node == x.node && position == x.position;
+ }
+ bool operator!=(const iterator& x) const {
+ return node != x.node || position != x.position;
+ }
// Accessors for the key/value the iterator is pointing at.
reference operator*() const {