You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a restriction for Boost.Python, but not for pybind11 as pybind11 uses default policy when not provided (see return_value_policy::automatic[_reference] in this doc).
For example, pybind11 allows to generate bindings for getName() with no return value policy specification:
Possible solution would be introducing a tag in options to specify default return value policies for pointer, const pointer, reference, and const reference. This way we could reduce the number of return value policy specification per types (see this example).
The text was updated successfully, but these errors were encountered:
This is a restriction for Boost.Python, but not for pybind11 as pybind11 uses default policy when not provided (see
return_value_policy::automatic[_reference]
in this doc).For example, pybind11 allows to generate bindings for
getName()
with no return value policy specification:Possible solution would be introducing a tag in
options
to specify default return value policies for pointer, const pointer, reference, and const reference. This way we could reduce the number of return value policy specification per types (see this example).The text was updated successfully, but these errors were encountered: