From 4c9a160a1d85be98c7111f50daa2f41e5fb5cd70 Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Wed, 29 Jun 2016 15:27:21 +0100 Subject: [PATCH] Exclude double type from is_pod_struct --- include/pybind11/numpy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index a3bab986..393c887e 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -31,6 +31,7 @@ struct is_pod_struct { enum { value = std::is_pod::value && // offsetof only works correctly for POD types !std::is_integral::value && !std::is_same::value && + !std::is_same::value && !std::is_same::value && !std::is_same>::value && !std::is_same>::value };