Re: Template class help??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux