[C++-sig] Re: Re: boost::python::api
daveh at cadlink.com
Fri Jul 12 03:34:02 CEST 2002
"David Abrahams" <david.abrahams at rcn.com> wrote in message
news:13c301c22917$b9ca1350$6601a8c0 at boostconsulting.com...
> ----- Original Message -----
> From: "Dave Hawkes" <daveh at cadlink.com>
> > I had to keep the get_args code for those functions that can take a
> > number of templated arguments (such as print) as the args could be any
> > mixture of types.
> Please explain what you mean.
> The arguments can be any mixture of types in getslice(), for example, and
> it all works with a single template and one non-templated version.
> I can see no justification for your claim.
There are still two versions, one that takes templated arguments and one
that takes all object arguments. The get_arg is not essential it is just
there to try and reduce the extra temporary objects if just one argument is
required to be templated and all the others are objects.
More information about the Cplusplus-sig