On 21 October 2010 18:52, Neal Becker <ndbeck...@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.