mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-12 01:10:34 +00:00
Use default policy
This commit is contained in:
@@ -1028,8 +1028,7 @@ public:
|
||||
}
|
||||
|
||||
if (parent) {
|
||||
return type_caster_base<type>::cast(
|
||||
srcs, return_value_policy::reference_internal, parent);
|
||||
return type_caster_base<type>::cast(srcs, policy, parent);
|
||||
}
|
||||
|
||||
throw cast_error("Unable to convert std::shared_ptr<T> to Python when the bound type "
|
||||
|
||||
Reference in New Issue
Block a user