Boost logo

Boost :

From: John Maddock (jz.maddock_at_[hidden])
Date: 2022-08-18 10:13:36

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.

Matt, here's a thought: if we can detect NaN's (and obviously zeros),
can/should we static_assert in those cases that this is known not to work?

Best, John.

Boost list run by bdawes at, gregod at, cpdaniel at, john at