Skip to content

Commit

Permalink
Exclude double type from is_pod_struct
Browse files Browse the repository at this point in the history
  • Loading branch information
aldanor committed Jul 2, 2016
1 parent 93251c4 commit 84a5056
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/pybind11/numpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 84a5056

Please sign in to comment.