Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify return value policy for bindings #49

Open
francocipollone opened this issue Jan 24, 2022 · 0 comments
Open

Verify return value policy for bindings #49

francocipollone opened this issue Jan 24, 2022 · 0 comments

Comments

@francocipollone
Copy link
Collaborator

Return value policy
image

Note: For further information check all the policies here

In most of the cases that we are returning a pointer or a reference we are using py::return_value_policy::reference_internal however there are some cases where py::return_value_policy::reference is being used.
This should be verified to avoid undefined behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant