Skip to content

Commit 81657fc

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 81657fc

File tree

2 files changed

+372
-132
lines changed

2 files changed

+372
-132
lines changed

0 commit comments

Comments
 (0)