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 libobjc/51749] Including <algorithm> pollute global namespace


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


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