【发布时间】:2011-04-14 05:28:45
【问题描述】:
使用Qstd=c++0x 编译时,英特尔 C++ 是否预定义了某些宏?像 GCC 中的 __GXX_EXPERIMENTAL_CXX0X__ 这样的东西? __cplusplus 仍然是 199711。
有什么方法可以检测 C++0x 编译?
【问题讨论】:
标签: c++ c++11 c-preprocessor intel conditional-compilation
使用Qstd=c++0x 编译时,英特尔 C++ 是否预定义了某些宏?像 GCC 中的 __GXX_EXPERIMENTAL_CXX0X__ 这样的东西? __cplusplus 仍然是 199711。
有什么方法可以检测 C++0x 编译?
【问题讨论】:
标签: c++ c++11 c-preprocessor intel conditional-compilation
在当前 (2013-08-06) 适用于 Windows 的 Intel Composer XE 2013 Update 5 中,预处理器定义列表包括
#define __INTEL_CXX11_MODE__ 1
当且仅当启用 C++0x 模式。
【讨论】:
Intel documentation indicates 在 Linux 上确实定义了 __GXX_EXPERIMENTAL_CXX0X__,但在 Windows 上没有定义任何宏。
【讨论】: