[Predef-contribute] value of __cplusplus for C++98
Brought to you by:
breese,
tahonermann
|
From: massimo m. <mas...@gm...> - 2012-10-09 09:16:00
|
First of all: thanks for your pre-def macro wiki. I find it very usefull. But, about the value of __cplusplus for C++98 (ISO/IEC 14882:1998), your value is 199707L when I find the value 199711L from other sources (examples: [1], [2], [3]). I can say that g++ 4.7 use the 199711L value. By the way, g++ pre 4.7 is incorrect and use the value 1 (see [2]). Kind regards and sorry form my bad english. massimo morara [1] http://www.lehman.cuny.edu/cgi-bin/man-cgi?standards+5 [2] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773 [3] http://stackoverflow.com/questions/11053960/how-are-the-cplusplus-directive-defined-in-various-compilers |