Ubuntu – Why does this custom type trait checking for a function template not work?
I have written this type trait with a test case: template <typename T, typename = int> struct is_serializable: false_type {}; template <typename T> struct is_serializable< T, enable_if_t< is_same_v< decltype(declval<T>().serialize(declval<gsl::span<uint8_t>>())), gsl::span<uint8_t> > > > : true_type {}; template <typename T> constexpr…