7 ms·
> But reinterpret_cast isn't valid in a constexpr scope. std::bit_cast is
by TuxSH 6mo ago
> But reinterpret_cast isn't valid in a constexpr scope.
std::bit_cast is
- debugnik 6mo agoOh cool, and it behaves like memcpy, not like pointer aliasing! I'm stuck with C++14 at work so I missed that one.