I have some class like :
template<int DIMENSION, typename T> Vector { ... }
Now, I want to specialize the typename and provide a new type using a typedef. I thus found an answer on StackOverflow at C++ typedef for partial templates
I thus did :
template < int DIMENSION> using VectorDouble= Vector<DIMENSION, double>;
This does not compile (error C2988: unrecognizable template declaration/definition). Is this because my compiler (Visual Studio 2008) doesn’t allow it, or did I miss something ?
Thanks.
The answer you refer to says:
C++1x is not yet current, so most compilers don’t support its features. In particular, VC++9.0 (VS2008) has almost no support for them. VC++10 (VS2010) does support some features, but I don’t know if what you need is one of those.