diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 683eb2ccd..7ddd384d9 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -389,9 +389,7 @@ public: template -struct type_caster< - T, enable_if_t::value || - std::is_floating_point::value>> { +struct type_caster::value>> { typedef typename std::conditional::type _py_type_0; typedef typename std::conditional::value, _py_type_0, typename std::make_unsigned<_py_type_0>::type>::type _py_type_1; typedef typename std::conditional::value, double, _py_type_1>::type py_type;