Commit 4c9a160a by Ivan Smirnov

Exclude double type from is_pod_struct

parent 3b803846
...@@ -31,6 +31,7 @@ struct is_pod_struct { ...@@ -31,6 +31,7 @@ struct is_pod_struct {
enum { value = std::is_pod<T>::value && // offsetof only works correctly for POD types enum { value = std::is_pod<T>::value && // offsetof only works correctly for POD types
!std::is_integral<T>::value && !std::is_integral<T>::value &&
!std::is_same<T, float>::value && !std::is_same<T, float>::value &&
!std::is_same<T, double>::value &&
!std::is_same<T, bool>::value && !std::is_same<T, bool>::value &&
!std::is_same<T, std::complex<float>>::value && !std::is_same<T, std::complex<float>>::value &&
!std::is_same<T, std::complex<double>>::value }; !std::is_same<T, std::complex<double>>::value };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment