_cplusplus symbol's value

koala01 koala01@free.fr
Thu Jan 28 12:24:00 GMT 2010


Hi,

I would like to discuss about _cplusplus symbol value.

for now, we have:
0 if we do not compile in C++
1 if we compile in C++

And we have the opportunity to test if we compile in C++1x only by 
checking the definition of the symbol __GXX_EXPERIMENTAL_CXX0X__.

I know that C++1x is not yet finalized, but according 
http://www2.research.att.com/ ~ bs / C + +0 xFAQ.html # 0x its value 
should be:

0 if we do not compile in C++,
less than or equal to 199711L when compiling C++ (C++03 and above),
greater than 199711L (not yet fully defined, according to C++1x 
finalization date) if we're compiling in C++1x.

Also, is it possible to care about those values, even to correct once 
the final value is known?

PS: please excuse my bad English, my native language is French



More information about the Gcc mailing list