|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-07-16 15:37:38
Hi Ralf,
I'm not sure. I think you'd need some funky metaprogramming. Actually, on
second thought, I don't see how to get it to work anymore - the default
argument values can only be generated by code which tries to call the
function directly AFAICT. I think Ulli and I discussed it long ago; maybe he
remembers an approach.
-Dave
----- Original Message -----
From: <rwgk_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, July 16, 2001 1:58 PM
Subject: [boost] Re: Boost:::python default function arguments
> --- In boost_at_y..., "David Abrahams" <david.abrahams_at_r...> wrote:
> > If someone was interested in adding this feature, it would be
> possible to
> > provide a different def() function overload which takes as a
> parameter the
> > number of default arguments and generates all of the neccessary
> Python
> > function overloads.
> >
> > -Dave
>
> I am! My Boost.Python module code is full of manually
> generated overloads for member functions with default
> arguments.
>
> David, how difficult is it to implement your suggestion?
>
> Thanks!
> Ralf
>
>
>
> Info: http://www.boost.org Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk