Ok guys. I have a class String, and i need to put the operator >> in that class. so i do this:
istream & operator>>(istream &in,String &str)
but when i do:
i have this error
error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'String' (or there is no acceptable conversion)
why?? I have the operator << and it works with no problems. Any idea??