Partially instantiated template as argument to alias parameter.

Yuxuan Shui via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 4 15:07:34 PST 2015


I think this is a reasonable use case:

auto A(R, S)(R a,S b) {return a+b;}

auto B(alias f)(){return f(1, 1.0);}

void main{writeln(B!(A!int)());}


More information about the Digitalmars-d mailing list