Is it possible to derive all template instantiations that have a derived class as their argument from the instantiation that has the base class as its argument?
In code:
class Base{};
class Derived1 : Base{};
class Derived2 : Base{};
template<typename T>
class Templ /*: Templ<Base> if T derives from Base*/
{};
How would one do that?