I'm trying to add some typedef to my class, but the compiler reports a syntax erron on the following code:
template<class T>
class MyClass{
typedef std::vector<T> storageType; //this is fine
typedef storageType::iterator iterator; //the error is here
but the next does not work too:
typedef std::vector<T>::iterator iterator;
I was looking for the answers on many forum but i can't find a solution or workaround for this. Thank you for your help!