try fix reg last com

This commit is contained in:
Christian Zimmermann 2019-02-19 16:27:50 +01:00
parent 709e30a4a1
commit f47d3fdb8a
2 changed files with 5 additions and 6 deletions

View file

@ -98,14 +98,13 @@ namespace MultiArrayTools
} }
template <typename T, class OperationClass> template <typename T, class OperationClass>
template <class AOp, class... Indices> template <template <class,class> class AOp, class... Indices>
auto OperationBase<T,OperationClass>::oto(const AOp& aop, auto OperationBase<T,OperationClass>::oto(const std::shared_ptr<Indices>&... inds) const
const std::shared_ptr<Indices>&... inds) const
-> MultiArray<T,typename Indices::RangeType...> -> MultiArray<T,typename Indices::RangeType...>
{ {
MultiArray<T,typename Indices::RangeType...> out(inds->range()..., MultiArray<T,typename Indices::RangeType...> out(inds->range()...,
static_cast<T>(0)); static_cast<T>(0));
AOp::selfApply(out(inds...), THIS()); AOp<decltype(out(inds...)),decltype(THIS())>::selfApply(out(inds...), THIS());
return out; return out;
} }

View file

@ -69,8 +69,8 @@ namespace MultiArrayTools
auto to(const std::shared_ptr<Indices>&... inds) const auto to(const std::shared_ptr<Indices>&... inds) const
-> MultiArray<T,typename Indices::RangeType...>; -> MultiArray<T,typename Indices::RangeType...>;
template <class AOp, class... Indices> template <template <class,class> class AOp, class... Indices>
auto oto(const AOp& aop, const std::shared_ptr<Indices>&... inds) const auto oto(const std::shared_ptr<Indices>&... inds) const
-> MultiArray<T,typename Indices::RangeType...>; -> MultiArray<T,typename Indices::RangeType...>;
template <typename R, class... Args> // Args = Operation Classes template <typename R, class... Args> // Args = Operation Classes