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 e76dff7 commit a7cd5ccCopy full SHA for a7cd5cc
include/pybind11/pybind11.h
@@ -1057,7 +1057,7 @@ class class_ : public detail::generic_type {
1057
record.holder_size = sizeof(holder_type);
1058
record.init_instance = init_instance;
1059
record.dealloc = dealloc;
1060
- 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;
1061
1062
set_operator_new<type>(&record);
1063
0 commit comments