Overloading funtion templates.

Balagopal Komarath via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 28 23:40:04 PDT 2017


On Wednesday, 28 June 2017 at 12:19:31 UTC, vit wrote:
> auto foo(alias F, T)(T x)
> {
>     return x.foo(&F);
> }

With this definition foo!((x) => x+1)(3); doesn't work. Is there 
a way to solve this?


More information about the Digitalmars-d-learn mailing list