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

后端 未结 4 973
孤独总比滥情好
孤独总比滥情好 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:26

    There is some support already; The following two summaries are oriented on Clang's list:

    Supported (as of July 5th, 2015):

    • auto for function parameters is supported since 4.9. This feature is currently considered an extension but is included in the concepts proposal and called "generic functions".
    • trigraphs are being ignored by default since 5.1.0
    • typename for template template parameters since 5.1.0
    • new deduction rules for direct-list-initialization since 5.1.0
    • static_assert without a message in HEAD
    • u8 character literals in HEAD
    • Attributes for namespaces or enumerators in HEAD

    Unsupported (as of July 5th, 2015; with links to a valid example usage):

    • Fold expressions
    • Nested namespace definitions
    • Constant evaluation for all non-type template arguments

    For the status of implementation of library proposals in libstdc++, the corresponding manual has a list.

提交回复
热议问题