Template for function or delegate (nothing else)

bearophile bearophileHUGS at lycos.com
Wed Feb 9 12:29:11 PST 2011


useo:

> ... something like:
> 
> void bindEvent(T)(if (is(T == delegate) || is(T == function)))()...

void foo(T)(T x) if (is(T == delegate) || is(T == function)) { ... }

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list