GCC中C ++ 17支持的状态如何?
问题描述:
Clang的漂亮页面描述了带有状态的项目状态。 C ++ 1z / C ++ 17功能支持(以及C ++ 11和C ++ 14,位于同一页面)。
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 ++具有有关C ++ 14功能的页面,但我找不到有关C ++ 17 / C ++ 1z的任何信息。是否正在处理但不在网络上?对于版本5.0?
g++ has a page regarding C++14 features, but I couldn't find anything about C++17/C++1z. Is that being worked on but just not present on the web? For version 5.0?
答
更新后的最终总结答案:
Updated final nutshell answer:
- GCC 8.x(及更高版本)完全支持所有C ++ 17。
- GCC 7.x支持所有C ++ 17,但类模板参数除外
- GCC 6.x(及更早版本)几乎不支持C ++ 17功能。
感谢@JanVanDijk提供的链接到完整功能表的链接。
Thanks @JanVanDijk for the link to the full feature table.