From 35bf3c8ad7f4fd64f81773af234b1283572ad7f2 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 21 Aug 2022 08:48:11 +0800 Subject: [PATCH] include/denc: use concept to define denc_traits to be more specific, define denc_traits for types with ext types Signed-off-by: Kefu Chai --- src/include/denc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/denc.h b/src/include/denc.h index 92224252a52..621da9e70bc 100644 --- a/src/include/denc.h +++ b/src/include/denc.h @@ -376,7 +376,8 @@ using ExtType_t = typename ExtType::type; } // namespace _denc template -struct denc_traits>>> +requires (!std::is_void_v<_denc::ExtType_t>) +struct denc_traits { static constexpr bool supported = true; static constexpr bool featured = false; -- 2.39.5