From 5140eaa5e79f6ea8426e907e4767d40a0c15021f Mon Sep 17 00:00:00 2001
From: Max Kellermann <mk@cm4all.com>
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<SafeLinkIntrusiveListHook, T>::value)
+		if constexpr (std::is_base_of_v<SafeLinkIntrusiveListHook, T>)
 			clear();
 	}
 
@@ -288,7 +288,7 @@ public:
 	}
 
 	void clear() noexcept {
-		if constexpr (std::is_base_of<SafeLinkIntrusiveListHook, T>::value) {
+		if constexpr (std::is_base_of_v<SafeLinkIntrusiveListHook, T>) {
 			/* for SafeLinkIntrusiveListHook, we need to
 			   remove each item manually, or else its
 			   is_linked() method will not work */