Possible Duplicate:
C++ template typedef
I am trying to derive a template type of another template by pre-specializing of 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, on GCC 4.4.5, I am getting this error: error: template declaration of ‘typedef’
on the second type (test01
).
Guidance would be highly appreciated, as I don't understand what is wrong with my code.