]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include/denc: use concept to define denc_traits 47710/head
authorKefu Chai <tchaikov@gmail.com>
Sun, 21 Aug 2022 00:48:11 +0000 (08:48 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sun, 21 Aug 2022 02:09:14 +0000 (10:09 +0800)
to be more specific, define denc_traits for types with ext types

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/include/denc.h

index 92224252a52a1ddd8f64f132dd78cc831316fd69..621da9e70bcc29b081f0880353ec967fbe317595 100644 (file)
@@ -376,7 +376,8 @@ using ExtType_t = typename ExtType<T>::type;
 } // namespace _denc
 
 template<typename T>
-struct denc_traits<T, std::enable_if_t<!std::is_void_v<_denc::ExtType_t<T>>>>
+requires (!std::is_void_v<_denc::ExtType_t<T>>)
+struct denc_traits<T>
 {
   static constexpr bool supported = true;
   static constexpr bool featured = false;