I have a template function which takes in objects. I need to determine whether the object is derived from a particular base class. If it is derived from the base class, I ne
You can do template specialization which will be fully static:
template
void function(const T& value)
{
common_task();
}
template <>
void function(const A& value)
{
common_task();
// special A tasks
}