diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index 2476a421..36a50793 100644 --- a/libsrc/meshing/meshtype.hpp +++ b/libsrc/meshing/meshtype.hpp @@ -292,8 +292,10 @@ namespace netgen { i = ai.i; return *this; } SegmentIndex & operator= (int ai) { i = ai; return *this; } operator int () const { return i; } - SegmentIndex & operator++ (int) { i++; return *this; } - SegmentIndex & operator-- (int) { i--; return *this; } + SegmentIndex& operator++ () { ++i; return *this; } + SegmentIndex& operator-- () { --i; return *this; } + SegmentIndex operator++ (int) { return i++; } + SegmentIndex operator-- (int) { return i--; } }; inline istream & operator>> (istream & ist, SegmentIndex & pi)