18 Aug
2022
18 Aug
'22
12:26 p.m.
On 8/18/22 13:13, John Maddock via Boost wrote:
On 18/08/2022 07:23, Mathias Gaunard via Boost wrote:
bit_cast is constexpr.
Good catch!
Matt and I discussed this ages ago and decided it was basically impossible, it's a shame that fix is C++20 but it's certainly better than nothing.
__builtin_bit_cast is available regardless of the C++ level. Though you're still limited to compilers that support it.