diff --git a/src/util/IntrusiveForwardList.hxx b/src/util/IntrusiveForwardList.hxx index 72b15bc1c..39055f11c 100644 --- a/src/util/IntrusiveForwardList.hxx +++ b/src/util/IntrusiveForwardList.hxx @@ -292,7 +292,7 @@ public: return {head.next}; } - static constexpr iterator end() noexcept { + constexpr iterator end() noexcept { return {nullptr}; } @@ -357,6 +357,10 @@ public: return {head.next}; } + constexpr const_iterator end() const noexcept { + return {nullptr}; + } + constexpr const_iterator last() const noexcept requires(options.cache_last) { return {last_cache.value};