diff --git a/src/util/IntrusiveList.hxx b/src/util/IntrusiveList.hxx index 0006d190a..183e98c93 100644 --- a/src/util/IntrusiveList.hxx +++ b/src/util/IntrusiveList.hxx @@ -382,6 +382,12 @@ public: return *this; } + auto operator++(int) noexcept { + auto old = *this; + cursor = cursor->next; + return old; + } + auto &operator--() noexcept { cursor = cursor->prev; return *this; @@ -447,6 +453,12 @@ public: return *this; } + auto operator++(int) noexcept { + auto old = *this; + cursor = cursor->next; + return old; + } + auto &operator--() noexcept { cursor = cursor->prev; return *this;