This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/51749] Including <algorithm> pollute global namespace


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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-01-08 12:41:16 UTC ---
(In reply to comment #5)
> Also found another similar problem while compiling on Windows with mingw-w64.
> Including <chrono> also pollutes the global namespace.

In general you'll just have to live with some of these bugs, we're not going to
reimplement the entire system's libc so libstdc++ has to be built on top of OS
features and not all of them can easily be hidden or redeclared with names
reserved names.

> PS. Should I report this specific problem to mingw-w64 instead?

No, it's not mingw-specific


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]