Checking for Callabilty of either f(x) or x.f
anonymous via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Aug 1 15:27:00 PDT 2014
On Friday, 1 August 2014 at 22:04:38 UTC, Nordlöw wrote:
> template isCallableWith(alias fun, T)
> {
> enum bool isCallable = is(typeof(fun(T.init))) ||
change the name to "isCallableWith" here
More information about the Digitalmars-d-learn
mailing list