Hi Holger,
You don't need the BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS macro if you support
keyword arguments (which is usually best). It should be as simple as:
.def("foo", &DefaultArgs::foo, (bp::arg("arg1")=100, bp::arg("arg2")=10))
The FUNCTION_OVERLOADS macros are more or less a relict. It
Hi,
this is basically a re-post of a problem I posted 5 weeks ago, on which
there's
been no echo whatsoever. Now, I'm unsure if this is because I posted on
April 1st,
nobody has ever seen this problem on his platform, nobody ever uses the
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS macro this way or I
Hi, i need some help on this.
//c++
class Simulation
{
Simulation() {/*...*/}
run() {/**/}
};
void modifySimulation( Simulation & sim ) {/*...*/}
BOOST_PYTHON_MODULE(pySimulation)
{
using namespace boost::python;
class_("Simulation")
.def("run" ,&Simulation_t::run )
;