On 3/26/2011 6:03 PM, Helmut Jarausch wrote:
> Hi,
> 
> I'd like to check if g++ has been invoked with the
> -std=c++0x command line option.

>From N3242 (draft):

"16.8 Predefined macro names [cpp.predefined]

1 The following macro names shall be defined by the implementation:
__cplusplus
The name __cplusplus is defined to the value 201103L when compiling a
C++ translation unit.155
155) It is intended that future versions of this standard will replace
the value of this macro with a greater value. Non-conforming
compilers should use a value with at most five decimal digits."

Examples:
http://predef.sourceforge.net/prestd.html

Best,

Matt
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to