Skip to content

Commit

Permalink
Merge pull request chipsalliance#1101 from antmicro/mglb/FixIncrement…
Browse files Browse the repository at this point in the history
…DecrementOperators

Fix LayoutFunctionIterator's increment and decrement operators
  • Loading branch information
tgorochowik authored Nov 18, 2021
2 parents 60829f3 + be0e84e commit 8836b29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/formatting/layout_optimizer_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,9 @@ class LayoutFunctionIterator {
return *this;
}

iterator operator++() { return *this += 1; }
iterator& operator++() { return *this += 1; }

iterator operator--() { return *this -= 1; }
iterator& operator--() { return *this -= 1; }

iterator operator++(int) {
auto tmp = *this;
Expand Down

0 comments on commit 8836b29

Please sign in to comment.