This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] Preprocessorised tr1::tuple
> One thing I will say, there is another way to implement these things (at
> least most of tuple), where tuple<A,B,C,D,..Z> is transformed into
> something like:
>
> pair<A,pair<B,pair<C,...pair<Z,Null>...>
>
> and then functions are defined to recurse their way through this
> structure. This is (for example) how much of boost (including
> boost::tuple) is currently implemented.
...typelists were not the kind of magic I was thinking of, actually.
:)
Doug's got it right. Anyway. I'll open up a feature request for variadic
templates.
-benjamin