This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __GXX_EXPERIMENTAL_CXX0X__
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Neal Becker <ndbecker2 at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 21 Oct 2010 20:37:57 +0100
- Subject: Re: __GXX_EXPERIMENTAL_CXX0X__
- References: <i9puk1$cpc$2@dough.gmane.org>
On 21 October 2010 18:52, Neal Becker <ndbecker2@gmail.com> wrote:
> I need a preprocessor macro to detect c++0x support. ?For now, that is
> ?__GXX_EXPERIMENTAL_CXX0X__
>
> but what happens once -std=c++0x is the default? ?Will this macro still
> be defined?
>
> Don't we need a
>
> __GXX_CXX0X__ ?
__cplusplus should be defined to the date the final standard gets
submitted - although there's a longstanding bug report that g++
defines __cplusplus to 1 currently.
I'm hoping that will change once C++0x support is no longer considered
experimental.