From 98138114f758dc7b0121f1209e1dfee4565a31ba Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Fri, 28 May 2021 20:17:20 +0200 Subject: [PATCH] remove assignment ContainerIndex -> MultiIndex --- src/include/ranges/multi_range.h | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/include/ranges/multi_range.h b/src/include/ranges/multi_range.h index c9d81af..71c765e 100644 --- a/src/include/ranges/multi_range.h +++ b/src/include/ranges/multi_range.h @@ -58,10 +58,6 @@ namespace MultiArrayTools // NO DEFAULT HERE !!! // ( have to assign sub-indices (ptr!) correctly ) - //MultiIndex(const MultiIndex& in); - //MultiIndex& operator=(const MultiIndex& in); - template - MultiIndex& operator=(ConstContainerIndex& ci); template MultiIndex(const std::shared_ptr& range); @@ -140,9 +136,6 @@ namespace MultiArrayTools MultiRangeFactory(const std::shared_ptr&... rs); MultiRangeFactory(const typename MultiRange::Space& space); - //template - //MultiRangeFactory(const std::shared_ptr >& cr); - virtual std::shared_ptr create() override; private: @@ -239,18 +232,6 @@ namespace MultiArrayTools /****************** * MultiIndex * ******************/ - - template - template - MultiIndex& MultiIndex::operator=(ConstContainerIndex& ci) - { - sfor_p<0,sizeof...(Indices)> - ( [&](auto i) { std::get(mIPack) = ci.template getPtr(); return true; } ); - IB::mPos = sfor_m - ( [&](auto i) { return std::get(mIPack); }, - [&](auto a, auto b) {return a->pos() + b*a->max();}, 0 ); - return *this; - } template template @@ -504,15 +485,6 @@ namespace MultiArrayTools mProd = std::shared_ptr< MultiRange >( new MultiRange( st ) ); } - /* - template - template - MultiRangeFactory::MultiRangeFactory(const std::shared_ptr >& cr) - { - mProd = std::shared_ptr< MultiRange >( new MultiRange( cr->space() ) ); - } - */ - template std::shared_ptr MultiRangeFactory::create() {