ok, I have 2 classes roughly like these 2:
class A; // various data classes to be used in D
class B {
public:
void x() { y() }
protected:
virtual void y();
};
template < class T >
class D : public B {
public:
void z();
protected:
virtual void y();
};
class D< A > d1;
Now, whenever I call d1.x(), it runs B::y() instead of D::y().
Is deriving a template class from a class without templates forbidden
in C++?
Is it possibly a compiler support issue?
My reason for doing this was to keep the size from getting so big as
I'm using the D class with many different classes in place of A on a
device with limited memory and storage.
Thanks,
Matt Graham