overwrite default assignment operator in OperationRoot
This commit is contained in:
parent
db32888ce9
commit
d13d9f7b72
1 changed files with 9 additions and 0 deletions
|
@ -267,6 +267,8 @@ namespace MultiArrayTools
|
||||||
template <class OpClass>
|
template <class OpClass>
|
||||||
OperationMaster<T,OpClass,Ranges...> operator=(const OpClass& in);
|
OperationMaster<T,OpClass,Ranges...> operator=(const OpClass& in);
|
||||||
|
|
||||||
|
OperationMaster<T,OperationRoot,Ranges...> operator=(const OperationRoot& in);
|
||||||
|
|
||||||
template <class ET>
|
template <class ET>
|
||||||
inline T get(ET pos) const;
|
inline T get(ET pos) const;
|
||||||
|
|
||||||
|
@ -820,6 +822,13 @@ namespace MultiArrayTools
|
||||||
return OperationMaster<T,OpClass,Ranges...>(mDataPtr, in, mIndex);
|
return OperationMaster<T,OpClass,Ranges...>(mDataPtr, in, mIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T, class... Ranges>
|
||||||
|
OperationMaster<T,OperationRoot<T,Ranges...>,Ranges...>
|
||||||
|
OperationRoot<T,Ranges...>::operator=(const OperationRoot<T,Ranges...>& in)
|
||||||
|
{
|
||||||
|
return operator=<OperationRoot<T,Ranges...> >(in);
|
||||||
|
}
|
||||||
|
|
||||||
template <typename T, class... Ranges>
|
template <typename T, class... Ranges>
|
||||||
template <class ET>
|
template <class ET>
|
||||||
inline T OperationRoot<T,Ranges...>::get(ET pos) const
|
inline T OperationRoot<T,Ranges...>::get(ET pos) const
|
||||||
|
|
Loading…
Reference in a new issue