从 GCC 13 到 GCC 14 的升级带来了什么?

  • Published at: 29.09.2024 20:32 by Jens Weller. Can be saved to Instapaper or Pocket.
  • C++ Features in GCC 14 Upgrade:

    • C++23 features: Adds support for std::generator to coroutines. Explicit object member functions (deducing this) is useful for implementing CRTP. New stacktrace library enabled by default. std::inout_ptr / std::out_ptr is available. Partial support for ranges::to and pipe support for user-defined range adaptors. New <print> header.
    • C++20 features: Mostly implemented except for partial module support since GCC 11. For chrono, Calendar and Timezones are fully supported with parse and from_stream.
    • C++26 features: Some support available already for a standard to be released in two years. GCC 14 brings more support for freestanding. User generated static_assert messages seems nice. C++26 is in early days and implementers should take time.
  • Meeting C++ Resources: Join the Meeting C++ patreon community (https://www.patreon.com/bePat... as posts on Meeting C++ are enabled by supporters. There may be more news about C++26 during the fall committee meeting and Meeting C++ 2024 the week before.
阅读 14
0 条评论