I have a template class where I need to get a 'generic' pointer to (in order to call a method on that template class).
class TemplateClass : public BaseT
// does not compile
TemplateClass<>* pObj = NULL;
I do not want to use a base class (type polymorphism) because it's part of a library and I do not want to dictate class hierarchies.
Most classes in this lib use to BaseT template parameter to derive from.
Is there any way to do this or should I search for an different solution?