Commit 81657fc
committed
roundtrip tests: object references passed to trampoline methods
Add tests to ensure that reference arguments passed to trampoline methods
(from C++ -> Python -> C++) are actually passed by reference (and not copied),
which is the default return_value_policy to pass from C++ to Python.
Being able to pass by reference is essential to allow object modifications
performed in Python code to become visible in C++.1 parent 0e01c24 commit 81657fc
2 files changed
Lines changed: 372 additions & 132 deletions
0 commit comments