Is this legitimate STL code ? Compiler seems not to like the iterator ...
template <typename Tn>
ostream& operator<<(ostream& out, vector<TnVV)
{
for ( vector<Tn>::iterator it = VV.begin(); it != VV.end(); ++it )
{
out << (*it);
}
return out << std::endl;
}
%icc BS.cc
BS.cc(151): error: expected a ";"
for ( vector<Tn>::iterator it = VV.begin(); it != VV.end(); ++it )
^
BS.cc(151): error: identifier "it" is undefined
for ( vector<Tn>::iterator it = VV.begin(); it != VV.end(); ++it )
^
compilation aborted for BS.cc (code 2)