Boost.Python call by reference : TypeError: No to_python (by-value) converter found for C++ type:

前端 未结 1 1377
小蘑菇
小蘑菇 2020-12-03 13:57

I\'m trying to expose my C++ Classes to Python using Boost.Python. Here is a simplyfied version of what i\'m trying to do:

I have a class A deriving from boost::nonc

相关标签:
1条回答
  • 2020-12-03 14:25

    Change B.do_something(a); to B.do_something(boost::ref(a));.

    See Calling Python Functions and Methods in the boost manual.

    0 讨论(0)
提交回复
热议问题