diff --git a/src/util/IntrusiveList.hxx b/src/util/IntrusiveList.hxx index 75c6cd0fa..5abd7bce5 100644 --- a/src/util/IntrusiveList.hxx +++ b/src/util/IntrusiveList.hxx @@ -189,7 +189,7 @@ class IntrusiveList { } static constexpr const auto &ToHook(const T &t) noexcept { - return HookTraits::ToHook(t); + return HookTraits::ToHook(const_cast(t)); } static constexpr IntrusiveListNode &ToNode(T &t) noexcept {