I want to make this specialized w/o changing main. Is it possible to specialize something based on its base class? I hope so.
-edit-
I\'ll have several class
And the short version now, 2014, using C++-11:
#include struct SomeTag { }; struct InheritSomeTag : SomeTag { }; template::value> struct MyClass { }; template struct MyClass { typedef int isSpecialized; }; int main() { MyClass::isSpecialized test1; /* ok */ MyClass::isSpecialized test2; /* ok */ }