From 7b2bd5427c7fbbe56620eb97d87c1c5f6f047ea0 Mon Sep 17 00:00:00 2001 From: Tom Lin Date: Thu, 31 Mar 2022 14:50:10 +0100 Subject: [PATCH] Fix missing counting iterator operators for stdpar --- src/std-indices/STDIndicesStream.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/std-indices/STDIndicesStream.h b/src/std-indices/STDIndicesStream.h index bc068aa..26c7cb0 100644 --- a/src/std-indices/STDIndicesStream.h +++ b/src/std-indices/STDIndicesStream.h @@ -34,6 +34,7 @@ public: iterator& operator++() { num++; return *this; } iterator operator++(int) { iterator retval = *this; ++(*this); return retval; } iterator operator+(const value_type v) const { return iterator(num + v); } + iterator operator+=(int x) { iterator retval = *this; this->num+=x; return retval; } bool operator==(iterator other) const { return num == other.num; } bool operator!=(iterator other) const { return *this != other; }