From 5140eaa5e79f6ea8426e907e4767d40a0c15021f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 13 Jun 2022 20:21:29 +0200 Subject: [PATCH] util/IntrusiveList: use std::is_base_of_v --- src/util/IntrusiveList.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */