SFINAE

bearophile bearophileHUGS at lycos.com
Sun Oct 5 17:21:56 PDT 2008


Andrei Alexandrescu:
> void fun(int a, char[] b);
> should be treated as if it were declared:
> void fun(T, U)(T a, U b) if (is(T == int) && is(U == char[]));
> 
> In other words: a regular function is nothing but an "infinitely
> specialized" template function.

So you can also take a delegate/function pointer of that fun() template.

Bye,
bearophile



More information about the Digitalmars-d mailing list