Re: [PATCH] c++: Allow indeterminate unsigned char or std::byte in bit_cast - P1272R4

2021-11-29 Thread Jason Merrill via Gcc-patches
On 11/29/21 11:31, Jakub Jelinek wrote: Hi! P1272R4 has added to the std::byteswap new stuff to me quite unrelated clarification for std::bit_cast. std::bit_cast is already in C++20 though and std::byteswap is a new C++23 feature, it is unclear to me if that bit_cast addition in there is really

[PATCH] c++: Allow indeterminate unsigned char or std::byte in bit_cast - P1272R4

2021-11-29 Thread Jakub Jelinek via Gcc-patches
Hi! P1272R4 has added to the std::byteswap new stuff to me quite unrelated clarification for std::bit_cast. std::bit_cast is already in C++20 though and std::byteswap is a new C++23 feature, it is unclear to me if that bit_cast addition in there is really meant for C++23 and later only (e.g. relat