Search code examples
c++c++11c-preprocessorintelconditional-compilation

Detecting C++0x mode on Intel C++?


Does Intel C++ predefine some macro when compiling with Qstd=c++0x? Something like __GXX_EXPERIMENTAL_CXX0X__ in GCC? __cplusplus is still 199711.

Any way to detect C++0x compilation?


Solution

  • The Intel documentation indicates that it does define __GXX_EXPERIMENTAL_CXX0X__ on Linux, but does not define any macro on Windows.