There will be ambiguity with your class and std::vector since you are using namespace std.
struct vector
{
double x;
double y;
friend ostream& operator<< (ostream&, vector);
};
If you still want to grab the whole namespace, I think you can disambiguate like this.
friend ostream& operator<< (ostream&, ::vector);
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314