solved the memory problem, but I dont know how exactly this works...

This commit is contained in:
Christian Zimmermann 2017-02-23 20:19:05 +01:00
parent 6eb53111bb
commit 71f7a1aa4d
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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;
}; };