I have a class holding a pointer to a templated class:
[
class A
{
protected:
Feature<Base>* m_p_feature;
};
now I want to derive A with some derivative of Base:
class B : public A
{
public:
B()
{
m_p_feature = new Feature<Derived>();
}
};
where Derived is Derived from Base
]
C++ won't allow this. Why?