We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
std::move()
smart_holder::extract_deleter()
1 parent a0be89d commit 9adbb61Copy full SHA for 9adbb61
include/pybind11/detail/struct_smart_holder.h
@@ -242,7 +242,7 @@ struct smart_holder {
242
std::string("smart_holder::extract_deleter() precondition failure (") + context
243
+ ").");
244
}
245
- return std::unique_ptr<D>(new D(std::move(custom_deleter_ptr->deleter)));
+ return std::unique_ptr<D>(new D(custom_deleter_ptr->deleter)); // D must be copyable.
246
247
return nullptr;
248
0 commit comments