From 1d43fcb3e7d2f4d43b3d985194de0a6b438069b8 Mon Sep 17 00:00:00 2001 From: Aksel Alpay Date: Thu, 6 Jul 2023 22:38:50 +0200 Subject: [PATCH] std-indices: Fix infinite recursion in ranged::operator!= --- src/std-indices/STDIndicesStream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/std-indices/STDIndicesStream.h b/src/std-indices/STDIndicesStream.h index bc068aa..c2eec0e 100644 --- a/src/std-indices/STDIndicesStream.h +++ b/src/std-indices/STDIndicesStream.h @@ -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;}