diff --git a/src/util/IntrusiveList.hxx b/src/util/IntrusiveList.hxx index 99bb211e2..23715d11f 100644 --- a/src/util/IntrusiveList.hxx +++ b/src/util/IntrusiveList.hxx @@ -72,9 +72,8 @@ public: siblings.next = nullptr; } - bool is_linked() const noexcept { - static_assert(mode >= IntrusiveHookMode::TRACK); - + bool is_linked() const noexcept + requires(mode >= IntrusiveHookMode::TRACK) { return siblings.next != nullptr; }