Partially fixes #421

This commit is contained in:
Dennis Luxen 2012-09-18 23:36:57 +02:00
parent ae8dfcb55e
commit aef6d1795e

View File

@ -126,16 +126,16 @@ public:
inline DeallocatingVectorIterator operator++(int) { //postfix
DeallocatingVectorIteratorState _myState(mState);
_myState.mIndex++; _myState.setPointerForIndex();
mState.mIndex++; mState.setPointerForIndex();
return DeallocatingVectorIterator(_myState);
}
inline DeallocatingVectorIterator operator --(int) { //postfix
if(DeallocateC) assert(false);
DeallocatingVectorIteratorState _myState(mState);
_myState.mIndex--; _myState.setPointerForIndex();
mState.mIndex--; mState.setPointerForIndex();
return DeallocatingVectorIterator(_myState);
}
inline DeallocatingVectorIterator operator+(const difference_type& n) const {
DeallocatingVectorIteratorState _myState(mState);
_myState.mIndex+=n; _myState.setPointerForIndex();