We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 289e5d9 commit 8cfcdc7Copy full SHA for 8cfcdc7
include/pybind11/pybind11.h
@@ -1052,7 +1052,7 @@ class class_ : public detail::generic_type {
1052
record.holder_size = sizeof(holder_type);
1053
record.init_instance = init_instance;
1054
record.dealloc = dealloc;
1055
- record.default_holder = std::is_same<holder_type, std::unique_ptr<type>>::value;
+ record.default_holder = detail::is_instantiation<std::unique_ptr, holder_type>::value;
1056
1057
set_operator_new<type>(&record);
1058
0 commit comments