From 288d0cb18958783f6a3149bd5057e7a0857c2c32 Mon Sep 17 00:00:00 2001 From: Aksel Alpay Date: Thu, 6 Jul 2023 23:57:46 +0200 Subject: [PATCH] std-indices: Use forward iterator tag to align with the implemented operators --- 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..c1388b4 100644 --- a/src/std-indices/STDIndicesStream.h +++ b/src/std-indices/STDIndicesStream.h @@ -28,7 +28,7 @@ public: using value_type = N; using pointer = const N*; using reference = const N&; - using iterator_category = std::random_access_iterator_tag; + using iterator_category = std::forward_iterator_tag; explicit iterator(N _num = 0) : num(_num) {} iterator& operator++() { num++; return *this; }