From dd435198140ea95c8c28f9790c78f3485a7900b9 Mon Sep 17 00:00:00 2001 From: Joseph Mingrone Date: Mon, 8 Jan 2024 09:51:26 -0400 Subject: [PATCH] Fix build with clang 17 (#771) The build was fixed by adding the -= operator to Deque's random access iterator. --- src/util/data_structures/deque.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/data_structures/deque.h b/src/util/data_structures/deque.h index 8ea4dc05..ab5d5cb7 100644 --- a/src/util/data_structures/deque.h +++ b/src/util/data_structures/deque.h @@ -186,6 +186,11 @@ struct Deque { return *this; } + Iterator& operator-=(ptrdiff_t i) { + i_ -= i; + return *this; + } + private: ptrdiff_t i_;