This is the mail archive of the gcc-help@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]

strict C++ mode


Hi everyone,

Is there a way to get GCC to compile C++ in a "strict C++" mode?

By "strict C++" I mean that when I include <cstdio>, I get symbols that are
required by ISO 14882, but I don't get symbols that are not specified in ISO
14882.

So I'd get:
std::printf

But I would not get:
::printf

And I would not get any #define's that are not required by ISO 14882.  (Not
including header guards that have a double-underscore or start with
underscore-capital letter.)

Thanks,
--Eljay


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