3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-12 04:31:29 +00:00

Fix const_iterator postincrement behavior

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

View file

@ -805,8 +805,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) {