now fixed
This commit is contained in:
parent
22b93b0612
commit
90816bc471
1 changed files with 12 additions and 4 deletions
|
@ -13,8 +13,10 @@ namespace MultiArrayTools
|
|||
mInit(in.mInit),
|
||||
mRange(in.mRange)
|
||||
{
|
||||
if(mRange){
|
||||
mProtoI = std::make_shared<IndexType>( mRange, reinterpret_cast<std::intptr_t>(this) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
template <typename T, class... SRanges>
|
||||
|
@ -22,15 +24,19 @@ namespace MultiArrayTools
|
|||
mInit(in.mInit),
|
||||
mRange(in.mRange)
|
||||
{
|
||||
if(mRange){
|
||||
mProtoI = std::make_shared<IndexType>( mRange, reinterpret_cast<std::intptr_t>(this) );
|
||||
}
|
||||
}
|
||||
|
||||
template <typename T, class... SRanges>
|
||||
MultiArrayBase<T,SRanges...>& MultiArrayBase<T,SRanges...>::operator=(const MultiArrayBase& in)
|
||||
{
|
||||
mInit = in.mInit;
|
||||
mRange = in.mRange;
|
||||
if(mRange){
|
||||
mProtoI = std::make_shared<IndexType>( mRange, reinterpret_cast<std::intptr_t>(this) );
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
@ -39,7 +45,9 @@ namespace MultiArrayTools
|
|||
{
|
||||
mInit = in.mInit;
|
||||
mRange = in.mRange;
|
||||
if(mRange){
|
||||
mProtoI = std::make_shared<IndexType>( mRange, reinterpret_cast<std::intptr_t>(this) );
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue