Replace deprecated std::is_trivial by an internal definition

This commit is contained in:
Sergiu Deitsch 2025-09-22 18:59:10 +02:00 committed by Antonio Sánchez
parent b2ec79a23c
commit 14477c5d43

View File

@ -28,7 +28,8 @@ class Serializer;
// Specialization for POD types. // Specialization for POD types.
template <typename T> template <typename T>
class Serializer<T, typename std::enable_if_t<std::is_trivial<T>::value && std::is_standard_layout<T>::value>> { class Serializer<T,
typename std::enable_if_t<std::is_trivially_copyable<T>::value && std::is_standard_layout<T>::value>> {
public: public:
/** /**
* Determines the required size of the serialization buffer for a value. * Determines the required size of the serialization buffer for a value.