1
0
mirror of https://github.com/ceph/ceph synced 2025-04-01 23:02:17 +00:00

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 <tchaikov@gmail.com>
This commit is contained in:
Kefu Chai 2022-08-21 08:48:11 +08:00
parent c0a8fd6faa
commit 35bf3c8ad7

View 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;