I\'m trying to learn the STL library and I\'m having a weird problem. This code compiles perfectly:
void Show(vector myvec) { vector
Some compilers have problems detecting what is a member name and what is a type name, when inside templates. Try writing something like this in the first line of your template function body.
typename vector::iterator it;