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]

C++ versions of C library header files not using std namespace


Hi,

The C++ versions of the C Library header files provided with the gcc
distribution do not put the C standard library names into the std namespace
as specified by the IS. This could easily be accomplished by surrounding the
#include directive that includes the C header file into the C++ header with
the appropriate namespace declaration, e.g.,

------------------------------------
// file: cstdio

namespace std {

#include <stdio.h>

}
------------------------------------

, and would not impact existing code unless compiled with -fhonor-std flag.

-John

===========================
John A. Pedretti, Rogue Wave Software, Inc.   
(303) 545-3150     pedretti@roguewave.com  
===========================


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