[Bug libstdc++/36231] ostream includes unistd.h outside namespace std, polluting

redi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Apr 29 23:16:00 GMT 2010



------- Comment #2 from redi at gcc dot gnu dot org  2010-04-29 23:16 -------
it would be wrong to declare e.g. open(2) and close(2) in namespace std because
they are not part of ISO C++, they are part of your OS

If you are referring to ISO C names which get included in the global namespace
such as size_t then it is no longer an issue, as per
http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#456


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36231



More information about the Gcc-bugs mailing list