address of overloaded function

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 30 15:58:03 PDT 2015


On Wednesday, 30 September 2015 at 22:48:03 UTC, Freddy wrote:
> How do you take the address of a specific overloaded function. 
> This won't compile

You can write a helper function that uses __traits(getOverloads) 
and searches them for the right signature:

http://dlang.org/traits.html#getOverloads



More information about the Digitalmars-d-learn mailing list