Is this valid?

1
2
3
4
5
class declaredtype{sometime data;};

template <class thing>
typedef declaredtype<thing> a_name<thing>


???
Nope, but it will in C++0x
http://en.wikipedia.org/wiki/C%2B%2B0x#Template_aliases
If it's that simple you can use a #define
Last edited on
cool..
Topic archived. No new replies allowed.