This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51749] Including <algorithm> pollute global namespace
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 08 Jan 2012 12:41:16 +0000
- Subject: [Bug libstdc++/51749] Including <algorithm> pollute global namespace
- Auto-submitted: auto-generated
- References: <bug-51749-4@http.gcc.gnu.org/bugzilla/>
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