std-indices: Fix infinite recursion in ranged::operator!=

This commit is contained in:
Aksel Alpay 2023-07-06 22:38:50 +02:00 committed by GitHub
parent 7d570547ed
commit 1d43fcb3e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ public:
iterator operator+(const value_type v) const { return iterator(num + v); }
bool operator==(iterator other) const { return num == other.num; }
bool operator!=(iterator other) const { return *this != other; }
bool operator!=(iterator other) const { return num != other.num; }
bool operator<(iterator other) const { return num < other.num; }
reference operator*() const { return num;}