From b416fead82511a4da24901742f9ac895fba71a6a Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Wed, 14 Aug 2019 13:47:52 +0200 Subject: [PATCH] correct increment/decrement operators for segmentindex --- libsrc/meshing/meshtype.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)