mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
return value policy fix for functions returning std::shared_ptr<> (fixes #187)
This commit is contained in:
parent
c4d7ccd8b0
commit
ffd85b46d8
@ -720,7 +720,7 @@ public:
|
||||
|
||||
static handle cast(const holder_type &src, return_value_policy policy, handle parent) {
|
||||
return type_caster_generic::cast(
|
||||
src.get(), policy, parent,
|
||||
src.get(), return_value_policy::take_ownership, parent,
|
||||
src.get() ? &typeid(*src.get()) : nullptr, &typeid(type),
|
||||
©_constructor, &move_constructor, &src);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user