mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Merge branch 'segmentindex_operators' into 'master'
correct increment/decrement operators for segmentindex See merge request jschoeberl/netgen!199
This commit is contained in:
commit
fb76ef5c70
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user