From 3eb825fe966db92b742cbe5f80dcd75e171ac773 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 21 Aug 2022 08:28:16 +0800 Subject: [PATCH] include/denc: rewrite is_any_of using concept just for better readability Signed-off-by: Kefu Chai --- src/include/denc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/denc.h b/src/include/denc.h index b8982fa2110da..a5dd60413b283 100644 --- a/src/include/denc.h +++ b/src/include/denc.h @@ -269,8 +269,8 @@ template int DencDumper::i = 0; // --------------------------------------------------------------------- // raw types namespace _denc { -template -inline constexpr bool is_any_of = (... || std::is_same_v); +template +concept is_any_of = (std::same_as || ...); template struct underlying_type { using type = T; -- 2.39.5