Use default policy

This commit is contained in:
Dustin Spicuzza
2026-03-22 16:22:33 -04:00
parent 02f2b5f14e
commit b299f32104

View File

@@ -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 "