Is there any possibility to force a template to be from a certain base class so that I can call the base class function?
template <class T>
void SomeManager::Add(T)
{
T->CallTsBaseClassFunction();
//... do other stuff
}
See Question&Answers more detail:os