c++ - templates and typedef -


i have class :

 template<int dimension, typename t> vector { ... }   

now, want specialize typename , provide new type using typedef. found answer on stackoverflow @ c++ typedef partial templates

i did :

template < int dimension> using vectordouble= vector<dimension, double>; 

this not compile (error c2988: unrecognizable template declaration/definition). because compiler (visual studio 2008) doesn't allow it, or did miss ?

thanks.

the answer refer says:

if have c++0x/c++1x compiler

c++1x not yet current, compilers don't support features. in particular, vc++9.0 (vs2008) has no support them. vc++10 (vs2010) support some features, don't know if need 1 of those.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -