[C++-sig] len(list())?

David Abrahams david.abrahams at rcn.com
Wed Jul 3 19:34:25 CEST 2002


From: "Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com>


>  I am still longing for a feature that will have a *much* bigger
> payoff for us: a mechanism for easing the burden of writing thin
wrappers.
> E.g.:
>
> namespace {
>
> int my_function(int i=0, int j=1, int k=2);
>
> BOOST_PYTHON_WRAPPER_STUBS(my_function)
>
> }
>
> Later:
>
> .def(my_function_stubs, args<int>())
> .def(my_function_stubs, args<int, int>())
> .def(my_function_stubs, args<int, int, int>())

That might be possible. Sounds like a meta-lot of fun to implement ;-)

-Dave







More information about the Cplusplus-sig mailing list