From 97a3a49678bfd9fac7ba900d4bf9b5c1b4534208 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Sat, 29 Jun 2024 11:31:12 -0700 Subject: [PATCH] make smart_holder the default holder (baby step; does not build) --- include/pybind11/pybind11.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);