Where namespace does operator<< (stream) go to?

Posted by aaa on Stack Overflow See other posts from Stack Overflow or by aaa
Published on 2010-03-19T17:19:59Z Indexed on 2010/03/19 17:31 UTC
Read the original article Hit count: 124

Filed under:
|
|
|

If I have have some overloaded ostream operators, defined for library local objects, is its okay for them to go to std namespace? If I do not declare them in std namespace, then I must use using ns:: operator <<.

As a possible follow-up question, are there any operators which should go to standard or global namespace?

© Stack Overflow or respective owner

Related posts about c++

Related posts about operator