diff --git a/src/util/IntrusiveList.hxx b/src/util/IntrusiveList.hxx index d5f267010..131695b44 100644 --- a/src/util/IntrusiveList.hxx +++ b/src/util/IntrusiveList.hxx @@ -396,17 +396,17 @@ public: return Cast(cursor); } - iterator &operator++() noexcept { + auto &operator++() noexcept { cursor = cursor->next; return *this; } - iterator &operator--() noexcept { + auto &operator--() noexcept { cursor = cursor->prev; return *this; } - iterator &operator--(int) noexcept { + auto operator--(int) noexcept { auto old = *this; cursor = cursor->prev; return old; @@ -461,17 +461,17 @@ public: return Cast(cursor); } - const_iterator &operator++() noexcept { + auto &operator++() noexcept { cursor = cursor->next; return *this; } - iterator &operator--() noexcept { + auto &operator--() noexcept { cursor = cursor->prev; return *this; } - iterator &operator--(int) noexcept { + auto operator--(int) noexcept { auto old = *this; cursor = cursor->prev; return old;