Closed adrianalin closed 1 year ago
Well, Python primitive types are not "boxed" so this behavior is expected. I do not think there is a way to make this work without changing underlying C++ function type signature. Note that this is not a limitation of Binder or Pybind11 but rather result of how Python is handling primitive types (ints, floats, strings etc)
Method parameter reference for example int& is not working, the value is unchanged after method returns. I changed the binder/examples/example_struct/include/test_struct/test_struct.hpp and added a new method:
in python:
Do I need to add something to config?