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 relict. It is
> almost always best to follow the recipe above.
I see. I had already successfully tried your proposed solution but was
curious if
I could use the macro mechanism for variable arg lists.
> General remarks: use valgrind to find sources of segmentation faults
> and bus errors; look in boost/libs/python/test for role models to
> follow (everything you see in there is certain to work).
Unfortunately, Solaris/Sparc is not supported by valgrind. Maybe I'll get
around to try
the same on Linux but for now I'll just stick to your advice.
Thanks a lot
Holger
Landesbank Baden-Wuerttemberg
Anstalt des oeffentlichen Rechts
Hauptsitze: Stuttgart, Karlsruhe, Mannheim, Mainz
HRA 12704
Amtsgericht Stuttgart
_______________________________________________
Cplusplus-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/cplusplus-sig