|
Boost Users : |
From: Alexander Eisenhuth (newsuser_at_[hidden])
Date: 2007-06-04 09:34:04
How to wrap methode Get with Boost.Python?
class MyClass {
public:
MyClass();
void GetX(double &pos_x);
[...]
I'v tried it with:
.def(
"GetX"
, &::MyClass::GetX
, bp::arg("")
, bp::return_value_policy<bp::return_arg<1>() >()
But when I try it in python:
Boost.Python.ArgumentError: Python argument types in
MyClass.GetX(MyClass, int)
did not match C++ signature:
GetX(class MyClass::LedPosition_C {lvalue}, int {lvalue} )
Any ideas?
Thanks
Alexander
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net