[v3] Fully preprocessorify TR1 tuples

Chris Jefferson chris@bubblescope.net
Fri Oct 13 23:19:00 GMT 2006


Just a brief comment, the reason that I didn't do this originally is
because the maximum number of tuples is encoded in each tuple
instance, so if you change the maximum size, old code won't link to
it. Thats not to say I disagree with allowing the option to change it,
just explaining the original choice.

This problem will go away when variadic templates come along :)

Chris

On 13/10/06, Paolo Carlini <pcarlini@suse.de> wrote:
> Doug Gregor wrote:
>
> > The TR1 function objects are fully preprocessor-based, so that
> > tweaking the "repeat.h" and "bind_repeat.h" headers allow us to
> > change the maximum number of parameter supported. TR1 tuples were 95%
> > of the way there; this patch finishes the job. The two Perl scripts
> > are used to generate repeat.h and bind_repeat.h; I'm including them
> > in the e-mail for archival purposes, to make it easier to change the
> > number of support parameters later.
>
> Excellent, thanks: patch is certainly ok with me, please give the other
> maintainers a chance to comment then go ahead in a day or so.
>
> Thanks again,
> Paolo.
>



More information about the Libstdc++ mailing list