diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 364717938..3362b4d79 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -1601,7 +1601,8 @@ public: using type = type_; using type_alias = detail::exactly_one_t; constexpr static bool has_alias = !std::is_void::value; - using holder_type = detail::exactly_one_t, options...>; + using holder_type + = detail::exactly_one_t; static_assert(detail::all_of...>::value, "Unknown/invalid class_ template parameters provided"); @@ -1633,7 +1634,7 @@ public: record.holder_size = sizeof(holder_type); record.init_instance = init_instance; record.dealloc = dealloc; - record.default_holder = detail::is_instantiation::value; + record.default_holder = std::is_same::value; set_operator_new(&record);