This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __GXX_EXPERIMENTAL_CXX0X__


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]