Possible duplicate:
C ++ template typedef
I am trying to get a template template of another template by pre-specializing another template:
template<unsigned a, unsigned b, unsigned c>
struct test
{
enum
{
TEST_X = a,
TEST_Y = b,
TEST_Z = c,
};
};
template<unsigned c>
typedef test<0, 1, c> test01;
However, in GCC 4.4.5, I get this error: error: template declaration of ‘typedef’for the second type ( test01).
The manual will be highly appreciated since I do not understand what is wrong with my code.
source
share