> 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 specify the default values.I 
don't think there is a way to avoid the default value duplication (once in C++ 
code,
then again in Boost.Python bindings) if you need keyword arguments.
In practice I find the keyword arguments much more important than the drawback
of having to duplicate the default values, so I never use the macro mechanism.

Ralf
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to