fix AOWrapperIterator operator++

This commit is contained in:
Christopher Lackner 2019-08-29 15:02:13 +02:00
parent fcea398d7c
commit 331c0b9486

View File

@ -69,8 +69,8 @@ namespace ngcore
: ao(aao), ind(ai) { ; }
NETGEN_INLINE AOWrapperIterator operator++ (int)
{ return AOWrapperIterator(ao, ind++); }
NETGEN_INLINE AOWrapperIterator operator++ ()
{ return AOWrapperIterator(ao, ++ind); }
NETGEN_INLINE AOWrapperIterator& operator++ ()
{ ++ind; return *this; }
NETGEN_INLINE auto operator*() const -> decltype(ao[ind]) { return ao[ind]; }
NETGEN_INLINE auto operator*() -> decltype(ao[ind]) { return ao[ind]; }
NETGEN_INLINE bool operator != (AOWrapperIterator d2) { return ind != d2.ind; }