Variadic template alias parameters
Timon Gehr
timon.gehr at gmx.ch
Tue Jun 4 15:38:24 PDT 2013
On 06/05/2013 12:33 AM, Dylan Knutson wrote:
> Hello!
> As far as I can tell, you can't have a variadic of alias parameters on a
> template, which is strange to me. Eg, you can't do something like:
>
> template Foo(alias Args...) {
> ...
> }
>
> int i = 0;
> Foo!(std.conv, "123", i);
>
> Is there a reason for this restriction?
It wouldn't add any functionality.
template Foo(Args...) {
...
}
int i = 0;
Foo!(std.conv, "123", i);
More information about the Digitalmars-d
mailing list