template isSomething(T) { enum isSomething = is(typeof(__traits(getMember, T, "doSomething")) == function) && is(typeof(&__traits(getMember, T, "doSomething")) : void function(Unrelated*)); }