When using #include <string> and using namespace std
I get error C2872: 'ostream' : ambiguous symbol when trying to overload the << operator.
I can fix that by using the scope operator and calling ostream like ::ostream.
The only problem is then when I try and use the >> operator to print out the string I get this
error C2679: binary '<<' : no operator defined which takes a
right-hand operand of type 'class
std::allocator>' (or there is no acceptable conversion)
My question is how do I make this work? and why do I get the ambigious symbol error?