mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 13:50:33 +05:00
correct increment/decrement operators for segmentindex
This commit is contained in:
parent
15e68020ba
commit
b416fead82
@ -292,8 +292,10 @@ namespace netgen
|
|||||||
{ i = ai.i; return *this; }
|
{ i = ai.i; return *this; }
|
||||||
SegmentIndex & operator= (int ai) { i = ai; return *this; }
|
SegmentIndex & operator= (int ai) { i = ai; return *this; }
|
||||||
operator int () const { return i; }
|
operator int () const { return i; }
|
||||||
SegmentIndex & operator++ (int) { i++; return *this; }
|
SegmentIndex& operator++ () { ++i; return *this; }
|
||||||
SegmentIndex & operator-- (int) { 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)
|
inline istream & operator>> (istream & ist, SegmentIndex & pi)
|
||||||
|
Loading…
Reference in New Issue
Block a user