ReturnType and overloaded functions

Artur Skawina via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 13 03:40:07 PDT 2015


On 06/13/15 01:25, Yuxuan Shui via Digitalmars-d wrote:
> When there are multiple overloaded functions, whose return type will I get when I use ReturnType? Is there a way I could choose a specific function by its parameter types?

   alias ReturnType(alias F, A...) = typeof(F(A.init));


artur


More information about the Digitalmars-d mailing list