I am trying to create a class with a template and than subclass it like so:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
template<class T>
class A : public D { //D is defined else where and I am subclassing it as well
protected:
T* data;
public:
A(int);
~A();
};
template<class T>
A<T>::A(int x) : D(x) { ... }
template<class T>
A<T>::~A() { ... }