[libc-commits] [libc] [libc] raise CMAKE_CXX_STANDARD to C++20 (PR #87020)

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Fri Mar 29 02:01:33 PDT 2024


gchatelet wrote:

Just linking in all the goodies we get from C++20
https://en.cppreference.com/w/cpp/20

 - Three-way comparison operator <=> and operator==() = default
 - Designated initializers
 - New attributes: [[no_unique_address]], [[likely]], [[unlikely]]
 - consteval, constinit
 - Signed integers are 2's complement
 - Constraints and concepts

https://github.com/llvm/llvm-project/pull/87020


More information about the libc-commits mailing list