Topic: can template classes derived from template classes


Author: taxi@netcom.com (Cab)
Date: Sun, 28 Aug 1994 00:15:52 GMT
Raw View
In constructing a template class, can it be derived from another
template class i.e.

template<class T> class foo {
 T* tvector;
 int tvcount;
public:
 foo(int);
}


template<class T> class bar : public foo {
 T work_T;
public:
 bar(int);

}

can this be done? what is the syntax? do I need to explicitly code a
constructor?

Thanks


--
Making Hardware Work Harder