Exclude double type from is_pod_struct

This commit is contained in:
Ivan Smirnov 2016-06-29 15:27:21 +01:00
parent 3b803846d5
commit 4c9a160a1d

View File

@ -31,6 +31,7 @@ struct is_pod_struct {
enum { value = std::is_pod<T>::value && // offsetof only works correctly for POD types
!std::is_integral<T>::value &&
!std::is_same<T, float>::value &&
!std::is_same<T, double>::value &&
!std::is_same<T, bool>::value &&
!std::is_same<T, std::complex<float>>::value &&
!std::is_same<T, std::complex<double>>::value };