diff --git a/src/util/IntrusiveList.hxx b/src/util/IntrusiveList.hxx index fdfba06fe..56c93f778 100644 --- a/src/util/IntrusiveList.hxx +++ b/src/util/IntrusiveList.hxx @@ -245,7 +245,7 @@ public: } ~IntrusiveList() noexcept { - if constexpr (std::is_base_of::value) + if constexpr (std::is_base_of_v) clear(); } @@ -288,7 +288,7 @@ public: } void clear() noexcept { - if constexpr (std::is_base_of::value) { + if constexpr (std::is_base_of_v) { /* for SafeLinkIntrusiveListHook, we need to remove each item manually, or else its is_linked() method will not work */