3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-09 23:52:03 +00:00

Fix const_iterator postincrement behavior

This commit is contained in:
Robert O'Callahan 2025-08-29 04:33:14 +00:00
parent 09742e27f7
commit 03127173c6
2 changed files with 26 additions and 2 deletions

View file

@ -904,8 +904,8 @@ public:
const_iterator& operator++() { ++idx; return *this; }
const_iterator& operator--() { --idx; return *this; }
const_iterator& operator++(int) { ++idx; return *this; }
const_iterator& operator--(int) { --idx; return *this; }
const_iterator operator++(int) { const_iterator result(*this); ++idx; return result; }
const_iterator operator--(int) { const_iterator result(*this); --idx; return result; }
const_iterator& operator+=(int i) { idx += i; return *this; }
const_iterator operator+(int add) {