fix: forgot pifor in subrange

This commit is contained in:
Christian Zimmermann 2019-01-16 12:33:50 +01:00
parent 8237fba438
commit 8048c573fa

View file

@ -82,6 +82,10 @@ namespace MultiArrayTools
auto iforh(size_t step, Expr ex) const auto iforh(size_t step, Expr ex) const
-> For<SubIndex<Index>,SubExpr<Index,Expr>,ForType::HIDDEN>; -> For<SubIndex<Index>,SubExpr<Index,Expr>,ForType::HIDDEN>;
template <class Expr>
auto pifor(size_t step, Expr ex) const
-> decltype(ifor(step, ex)); // no multithreading here (check!!)
private: private:
std::shared_ptr<RangeType> mExplicitRangePtr; std::shared_ptr<RangeType> mExplicitRangePtr;
//const U* mMetaPtr; //const U* mMetaPtr;
@ -332,6 +336,13 @@ namespace MultiArrayTools
&mExplicitRangePtr->subset(), ex ) ); &mExplicitRangePtr->subset(), ex ) );
} }
template <class Index>
template <class Expr>
auto SubIndex<Index>::pifor(size_t step, Expr ex) const
-> decltype(ifor(step, ex))
{
return ifor(step, ex);
}
/************************ /************************
* SubRangeFactory * * SubRangeFactory *