Note that void is a type, while S is not. So you can do:assert(is(void)) // is(type) returns true assert(!is(S)) // is(template) returns false;
Thanks very much. I should have noticed this before. T.T
Note that void is a type, while S is not. So you can do:assert(is(void)) // is(type) returns true assert(!is(S)) // is(template) returns false;
Thanks very much. I should have noticed this before. T.T