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<T,Range>::
|
||||||
MultiArrayOperationBase(MultiArray<T,Range>& ma,
|
MultiArrayOperationBase(MultiArray<T,Range>& ma,
|
||||||
const Name& nm) : mArrayRef(ma),
|
const Name& nm) : mArrayRef(ma),
|
||||||
//mIndex(mArrayRef.begin()),
|
mIndex(mArrayRef.begin()),
|
||||||
mIibPtr(new IndexType(mArrayRef.begin())),
|
mIibPtr(&mIndex),
|
||||||
mNm(nm)
|
mNm(nm)
|
||||||
{
|
{
|
||||||
mIibPtr->name(nm);
|
mIibPtr->name(nm);
|
||||||
|
|
|
@ -64,7 +64,7 @@ namespace MultiArrayTools
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
MultiArray<T,Range>& mArrayRef;
|
MultiArray<T,Range>& mArrayRef;
|
||||||
//mutable IndexType mIndex;
|
mutable IndexType mIndex;
|
||||||
IndefinitIndexBase* mIibPtr = nullptr;
|
IndefinitIndexBase* mIibPtr = nullptr;
|
||||||
Name mNm;
|
Name mNm;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue