【问题标题】:Detecting C++0x mode on Intel C++?在英特尔 C++ 上检测 C++0x 模式?
【发布时间】: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


    【解决方案1】:

    在当前 (2013-08-06) 适用于 Windows 的 Intel Composer XE 2013 Update 5 中,预处理器定义列表包括

    #define __INTEL_CXX11_MODE__ 1
    

    当且仅当启用 C++0x 模式。

    【讨论】:

      【解决方案2】:

      Intel documentation indicates 在 Linux 上确实定义了 __GXX_EXPERIMENTAL_CXX0X__,但在 Windows 上没有定义任何宏。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-02-27
        • 1970-01-01
        • 1970-01-01
        • 2021-03-23
        • 2023-04-04
        • 2018-02-21
        • 1970-01-01
        • 2017-05-20
        相关资源
        最近更新 更多