G
Grey Alien
I recently read this:
"The best way to overload the stream operators is not to make them
members of any class, but to keep them as friends." (source:
http://www.codersource.net/cpp_stream_operators.html)
Is that true (I can't see why should be the case). If it is true, could
someone explain why?
"The best way to overload the stream operators is not to make them
members of any class, but to keep them as friends." (source:
http://www.codersource.net/cpp_stream_operators.html)
Is that true (I can't see why should be the case). If it is true, could
someone explain why?