18 Aug
2022
18 Aug
'22
10:13 a.m.
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.