Question about alias and getOverloads
Paul Backus
snarwin at gmail.com
Tue Jan 28 19:43:05 UTC 2020
On Tuesday, 28 January 2020 at 19:26:03 UTC, uranuz wrote:
> Hello! I have a question about `alias` template parameter and
> getOverloads.
> For instance I have some code like this:
> // -----
> import std;
> import core.thread;
>
> void foo(string param1) {}
> void foo(string param1, int param2) {}
>
> template Bar(alias Func)
> {
> // Next line is not valid now. This is my understanding of
> how I wish it would work...
> pragma(msg, __traits(getOverloads, Func));
> }
__traits(getOverloads, __traits(parent, Func),
__traits(identifier, Func))
More information about the Digitalmars-d-learn
mailing list