Re: [C++-sig] Wrapping method that returns const int& (boost::python)
Does this works for you?? 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") .def("getX", &Foo::getX, return_value_policy()) ; } W
[C++-sig] problem exposing iterators
() mb.build_code_creator( module_name = 'testIterator') mb.code_creator.license = '//Boost Software License(http://boost.org/more/license_info.html )' mb.write_module('bindings.cpp')
