Variadic templates
Jarrett Billingsley
kb3ctd2 at yahoo.com
Sat Nov 4 07:29:20 PST 2006
"Walter Bright" <newshound at digitalmars.com> wrote in message
news:eihm0v$1n22$2 at digitaldaemon.com...
> For creating tuples, the following works:
>
> template Tuple(T...)
> {
> alias T Tuple;
> }
>
> alias Tuple!(7, 'a', 6.8) t;
> print(t);
But:
alias Tuple!(4, 5, Tuple!("hi", "bye")) t2;
<DMD Crash>
I guess I should put this in Bugzilla if it's not there already..
More information about the Digitalmars-d
mailing list