struct Unrelated { ... }
template isSomething(T) { enum bool isSomething = is(typeof( (inout int = 0) { T???; // has a function void doSomething(Unrelated* up); // etc })); } struct Thingie { ... } static assert(isSomething!(Thingie)); Thanks Steve
struct Unrelated { ... }
template isSomething(T) { enum bool isSomething = is(typeof( (inout int = 0) { T???; // has a function void doSomething(Unrelated* up); // etc })); } struct Thingie { ... } static assert(isSomething!(Thingie)); Thanks Steve