Boost logo

Boost :

From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2022-08-18 12:26:33


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk