This way.
ostream & operator << (ostream &out, Vector const & vec)
{
// ...
}
The compiler will choose this function over the function template if you pass Vector
.
Edit: I found this article, which attempts to explain why to prefer overloading to template specialization.