79647433

Date: 2025-06-01 10:53:30
Score: 2.5
Natty:
Report link

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?

Reasons:
  • Blacklisted phrase (1): ???
  • Blacklisted phrase (0.5): I cannot
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Tomek