Calling template member function?

Andrey Zherikov andrey.zherikov at gmail.com
Tue Apr 19 18:30:46 UTC 2022


I get the same error even with just `struct`:
```d
struct S
{
     static void f_new(alias func)()
     {
         func();
     }
}

void f_new(alias func)()
{
     func();
}

void f(FUNC)(FUNC func)
{
     f_new!(() => func());   // works
     // S.f_new!(() => func());  // doesn't work
}
```


More information about the Digitalmars-d-learn mailing list