diff --git a/src/util/IntrusiveForwardList.hxx b/src/util/IntrusiveForwardList.hxx index d80cf78c1..09e852dbe 100644 --- a/src/util/IntrusiveForwardList.hxx +++ b/src/util/IntrusiveForwardList.hxx @@ -232,6 +232,12 @@ public: cursor = cursor->next; return *this; } + + iterator operator++(int) noexcept { + auto old = *this; + cursor = cursor->next; + return old; + } }; constexpr iterator before_begin() noexcept { @@ -286,6 +292,12 @@ public: cursor = cursor->next; return *this; } + + const_iterator operator++(int) noexcept { + auto old = *this; + cursor = cursor->next; + return old; + } }; constexpr const_iterator begin() const noexcept {