Template class help??

Eljay Love-Jensen eljay@adobe.com
Mon Mar 22 04:11:00 GMT 2004


Hi Nyi,

Yes, there is a way to do it.

Don't use typedef.  Use another template class.  Depending on your needs, 
try one of...

template <int size=10> class intarray : public aType<int, size>
{
// yada yada yada
};

...or...

template <int size=10> class intarray
{
private:
     aType<int, size> mArray;
// yada yada yada
};

HTH,
--Eljay



More information about the Gcc-help mailing list