This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: C++ cheaders=c (and c_compatability headers) vs cheaders=c-std


  cstdio

  1) _All_ typedefs and prototypes declared in eg stdio.h are declared in
  namespace std (and not in global) in the C-runtime header.

This is incorrect. Supposedly only C++ specified C names are in namespace 
std.


  2) _Only_ those [ISO C90] names that are explicitly listed for the headers
  in ISO/IEC 1482 are declared in std.  Non-ISO names go into global 
  namespace.  

Right, except for the last part. Non-C++-approved names aren't in std, 
and aren't in the global namespace. It is implementation defined where they go, as far 
as I can tell.

-benjamin


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