35class serialize_impl<T, std::enable_if_t<is_adapter_v<std::remove_pointer_t<T>>>>
37 struct S : std::remove_pointer_t<T>
39 using std::remove_pointer_t<T>::c;
42 void operator()(T& v,
serializer& ser, ser_opt_t options)
44 if constexpr ( std::is_pointer_v<T> ) {
45 if ( ser.mode() == serializer::UNPACK ) v =
new std::remove_pointer_t<T>;
46 SST_SER(
static_cast<S&
>(*v).c, options);
49 SST_SER(
static_cast<S&
>(v).c, options);
52 SST_FRIEND_SERIALIZE();