Alias overload of function

Andrey saasecondbox at yandex.ru
Sun Jun 9 10:22:36 UTC 2019


Hello,
I have got 2 functions:
> void myFunc(string name, int a)(wstring value) {}
> void myFunc(string name, int a)() {}

I want to make an alias (for example for second function without 
argument):
> alias myAlias(int a) = myFunc!("Name", a);

but compiler says:
> ... matches more than one template declaration

So how solve this problem?


More information about the Digitalmars-d-learn mailing list