I have a simple test case:
class Foo { public: const int& getX() const {return x;} void setX(const int& x_) {x = x_;} private: int x; }; BOOST_PYTHON_MODULE(module) { class_<Foo>("Foo") .def("getX", &Foo::getX) ; } The problem is that I cannot wrap getX and I get a compiler error. How is it possible to wrap getX WITHOUT changing anything in Foo? Thanks in advance! Panos Christopoulos Charitos www.ancient-ritual.com www.anki3d.org _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig