Merge branch 'segmentindex_operators' into 'master'

correct increment/decrement operators for segmentindex

See merge request jschoeberl/netgen!199
This commit is contained in:
Joachim Schöberl 2019-08-14 14:12:35 +00:00
commit fb76ef5c70

View File

@ -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)