mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
fix AOWrapperIterator operator++
This commit is contained in:
parent
fcea398d7c
commit
331c0b9486
@ -69,8 +69,8 @@ namespace ngcore
|
|||||||
: ao(aao), ind(ai) { ; }
|
: ao(aao), ind(ai) { ; }
|
||||||
NETGEN_INLINE AOWrapperIterator operator++ (int)
|
NETGEN_INLINE AOWrapperIterator operator++ (int)
|
||||||
{ return AOWrapperIterator(ao, ind++); }
|
{ return AOWrapperIterator(ao, ind++); }
|
||||||
NETGEN_INLINE AOWrapperIterator operator++ ()
|
NETGEN_INLINE AOWrapperIterator& operator++ ()
|
||||||
{ return AOWrapperIterator(ao, ++ind); }
|
{ ++ind; return *this; }
|
||||||
NETGEN_INLINE auto operator*() const -> decltype(ao[ind]) { return ao[ind]; }
|
NETGEN_INLINE auto operator*() const -> decltype(ao[ind]) { return ao[ind]; }
|
||||||
NETGEN_INLINE auto operator*() -> 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; }
|
NETGEN_INLINE bool operator != (AOWrapperIterator d2) { return ind != d2.ind; }
|
||||||
|
Loading…
Reference in New Issue
Block a user