help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: checking for std=c++0x


From: Matt P. Dz.
Subject: Re: checking for std=c++0x
Date: Sat, 09 Apr 2011 18:22:00 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.11) Gecko/20101021 Lanikai/3.1.5 (tete009 SSE PGO)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]