I am trying to add some typedef to my class, but the compiler reports syntactic erron in the following code:
template<class T> class MyClass{ typedef std::vector<T> storageType;
but the following does not work either:
typedef std::vector<T>::iterator iterator;
I searched for answers in many forums, but I cannot find a solution or workaround for this. Thanks for the help!
source share