Re: [C++-sig] BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS default args core dump

2011-05-11 Thread Ralf W. Grosse-Kunstleve
> I see. I had already successfully tried your proposed solution but was > curious if > I could use the macro mechanism for variable arg lists. For the record: If you don't want/need to support keyword arguments, the macro mechanism enables you to have variable argument lists without having to

Re: [C++-sig] BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS default args core dump

2011-05-11 Thread Holger Joukl
Hi Ralf, > 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