Suppose I have a template function and two classes
class animal { } class person { } template<class T> void foo() { if (T is animal) { kill(); } } How do I do the check for T is animal? I don't want to have something that checks during the run time. Thanks