Technically speaking the following partial specialization will do the trick:
template <typename T>
class B<B<T> *> : public B<T> {};
but I cannot say if that makes any sense. Just remember Liskov's substitution principle: Is B<B<T> *>
a B<T>
??? Can it replace B<T>
and still keep the program to be correct?