import y
a = 0
y.xxx(a)
报错了:
ArgumentError: Python argument types in
L0_L1.xxx(int)
did not match C++ signature:
xxx(int {lvalue})
请问像这种传递引用的函数如何用boost封装?
...全文
1788打赏收藏
boost python传递引用?
void xxx(int& x) { x = 100; } def("xxx", xxx); import y a = 0 y.xxx(a) 报错了: ArgumentError: Python argument types in L0_L1.xxx(int) did not match C++ signature: xxx(int {lvalue}) 请问像这种传递引用的函数如何用boost封装?