Skip to content

Commit

Permalink
Fix build with clang 17 (#771)
Browse files Browse the repository at this point in the history
The build was fixed by adding the -= operator to Deque's random access
iterator.
  • Loading branch information
Jehops committed Jan 8, 2024
1 parent e336e54 commit dd43519
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/util/data_structures/deque.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ struct Deque {
return *this;
}

Iterator& operator-=(ptrdiff_t i) {
i_ -= i;
return *this;
}

private:

ptrdiff_t i_;
Expand Down

0 comments on commit dd43519

Please sign in to comment.