solved the memory problem, but I dont know how exactly this works...
This commit is contained in:
parent
6eb53111bb
commit
71f7a1aa4d
2 changed files with 3 additions and 3 deletions
|
@ -11,8 +11,8 @@ namespace MultiArrayTools
|
|||
MultiArrayOperationBase<T,Range>::
|
||||
MultiArrayOperationBase(MultiArray<T,Range>& ma,
|
||||
const Name& nm) : mArrayRef(ma),
|
||||
//mIndex(mArrayRef.begin()),
|
||||
mIibPtr(new IndexType(mArrayRef.begin())),
|
||||
mIndex(mArrayRef.begin()),
|
||||
mIibPtr(&mIndex),
|
||||
mNm(nm)
|
||||
{
|
||||
mIibPtr->name(nm);
|
||||
|
|
|
@ -64,7 +64,7 @@ namespace MultiArrayTools
|
|||
protected:
|
||||
|
||||
MultiArray<T,Range>& mArrayRef;
|
||||
//mutable IndexType mIndex;
|
||||
mutable IndexType mIndex;
|
||||
IndefinitIndexBase* mIibPtr = nullptr;
|
||||
Name mNm;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue