$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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