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

2011-06-13 Thread Ralf Grosse-Kunstleve
Hi Wichert, Yes, it also works for constructors. For example: http://cci.lbl.gov/cctbx_sources/scitbx/r3_utils_ext.cpp Ralf On Mon, Jun 13, 2011 at 2:21 PM, Wichert Akkerman wrote: > On 2011-5-9 18:34, Ralf W. Grosse-Kunstleve wrote: > >> Hi Holger, >> >> You don't need the BOOST_PYTHON_MEMBE

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

2011-06-13 Thread Wichert Akkerman
On 2011-5-9 18:34, Ralf W. Grosse-Kunstleve wrote: 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)) Nice, I