This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libobjc/51749] Including <algorithm> pollute global namespace
- From: "nospam.kotarou.dono at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 17 Jan 2012 08:19:32 +0000
- Subject: [Bug libobjc/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
nospam.kotarou.dono at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|libstdc++ |libobjc
--- Comment #7 from nospam.kotarou.dono at gmail dot com 2012-01-17 08:19:32 UTC ---
I also noticed that quite a few of the c* files dump their entire C counterpart
in the global namespace. Is it supposed to do that according to the standard?
If not, it sounds like something that can fixed just by wrapping the #include
in a namespace std block.
I noticed:
cstdio dumps entire stdio.h
cstdlib dumps entire stdlib.h
cmath dumps entire math.h
cctype dumps entire ctype.h