I\'m trying to learn the STL library and I\'m having a weird problem. This code compiles perfectly:
void Show(vector myvec) { vector
You need this:
typename vector::iterator it;
This tells the compiler that vector::iterator should be treated as a type, something it can't assume since iterator is dependent on what T is.
vector::iterator
iterator
T