Why can't templates use tuples for for argument types?
BCS
ao at pathlink.com
Mon Jul 16 12:54:32 PDT 2007
Reply to Jari-Matti Mäkelä,
> Probably because the compiler does not unfold the tuple. I've filed a
> bug about instantiating an array literal from a tuple. It has a
> similar problem:
>
> alias Tuple!(1,2,3) a;
>
> int[] foo = [ a ]; // does not work, but
> int[] foo = [ a[0], a[1], a[2] ]; // does
So you are saying it's a bug?
In that case, what is the bug number so I can add some more comments?
More information about the Digitalmars-d-learn
mailing list