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

Does Intel C ++ provide a predefined macro when compiled with Qstd=c++0x? Something like __GXX_EXPERIMENTAL_CXX0X__in GCC? __cplusplusstill 199711.

Any way to detect C ++ 0x compilation?

+5
source share
2 answers

Intel documentation indicates that it defines __GXX_EXPERIMENTAL_CXX0X__on Linux, but does not define any macro on Windows.

+4
source

In the current (2013-08-06) Intel Composer XE 2013 Update 5 for Windows, the list of preprocessor definitions includes

#define __INTEL_CXX11_MODE__ 1

if and only if C ++ 0x mode is enabled.

0

All Articles