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 had not discovered that anywhere in the documentation. Is there
a similar construction that works for constructors as well?
Wichert.
--
Wichert Akkerman <wich...@wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig