Before a qualified dependent type, you need typename

Jan 11 2012 Published under Programming | Tags:

template <class T>
class MyClass {
   int i;
   vector<int> vi;
   vector<int>::iterator vitr;

   T t;
   vector<T> vt;
   vector<T>::iterator viter;
};

ref:
http://pages.cs.wisc.edu/~driscoll/typename.html

Tags:

No responses yet

Comments are closed at this time.

Login