From 8048c573fab08b2e4b7727c04da04f14c2eea339 Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Wed, 16 Jan 2019 12:33:50 +0100 Subject: [PATCH] fix: forgot pifor in subrange --- src/include/ranges/subrange.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/include/ranges/subrange.h b/src/include/ranges/subrange.h index d36d129..76e5fa2 100644 --- a/src/include/ranges/subrange.h +++ b/src/include/ranges/subrange.h @@ -82,6 +82,10 @@ namespace MultiArrayTools auto iforh(size_t step, Expr ex) const -> For,SubExpr,ForType::HIDDEN>; + template + auto pifor(size_t step, Expr ex) const + -> decltype(ifor(step, ex)); // no multithreading here (check!!) + private: std::shared_ptr mExplicitRangePtr; //const U* mMetaPtr; @@ -332,6 +336,13 @@ namespace MultiArrayTools &mExplicitRangePtr->subset(), ex ) ); } + template + template + auto SubIndex::pifor(size_t step, Expr ex) const + -> decltype(ifor(step, ex)) + { + return ifor(step, ex); + } /************************ * SubRangeFactory *