Boost logo

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.

----- 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: Unsubscribe:
> Your use of Yahoo! Groups is subject to

Boost list run by bdawes at, gregod at, cpdaniel at, john at