What's the status of C++17 support in GCC?

后端 未结 4 969
孤独总比滥情好
孤独总比滥情好 2021-01-31 15:44

Clang has a nice page describing the project status w.r.t. C++1z/C++17 feature support (and C++11 and C++14, it\'s the same page).

g++ has a page regarding C++14 feature

4条回答
  •  清酒与你
    2021-01-31 16:20

    Updated final nutshell answer:

    • GCC 8.x (and later) fully supports all of C++17.
    • GCC 7.x supports all of C++17 except for class template argument deduction.
    • GCC 6.x (and earlier) has little or no support for C++17 features.

    Thanks @JanVanDijk for the link to the full feature table.

提交回复
热议问题