Tuesday, October 5, 2010

Template Typedef

The following code does not compile:
template <class T> 
typedef std::vector<T> MyVector;

The next version of C++ might allow it.

Reference: http://www.gotw.ca/gotw/079.htm

No comments:

Post a Comment