Skip to content

Commit

Permalink
Partially fixes Project-OSRM#421
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Luxen committed Sep 18, 2012
1 parent ae8dfcb commit aef6d17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DataStructures/DeallocatingVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,16 @@ class DeallocatingVectorIterator : public std::iterator<std::random_access_itera

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();
Expand Down

0 comments on commit aef6d17

Please sign in to comment.