Skip to content

Commit 1506a6a

Browse files
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 1506a6a

File tree

2 files changed

+363
-132
lines changed

2 files changed

+363
-132
lines changed

0 commit comments

Comments
 (0)