template alias that includes a parameter
Timoses
timosesu at gmail.com
Sun Jul 1 13:32:34 UTC 2018
On Sunday, 1 July 2018 at 13:01:20 UTC, Timoses wrote:
>
> Aw, okay, then that won't work.
>
> Still, this looks like it should work:
>
> void foo(F, T)(T param) { writeln("Called with type: ",
> T.stringof); }
> alias tfoo = ApplyLeft!(foo, int);
>
> tfoo!string("hi");
> // tfoo("hi"); // Error
https://issues.dlang.org/show_bug.cgi?id=9365
More information about the Digitalmars-d-learn
mailing list