mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-10-11 23:51:50 +08:00
Replace deprecated std::is_trivial by an internal definition
This commit is contained in:
parent
b2ec79a23c
commit
14477c5d43
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user