I have a class template
template<class T>
class A
{
};
and one of its specialization
template<>
class A<B>
{
};
If C is a sub-class of B
class C : public B
{
};
Which instantiation is used for A<C>
? If it uses the first one A<T>
, how to let it use the second one A<B>
?