Remix.run Logo
TuxSH 3 hours ago

> But reinterpret_cast isn't valid in a constexpr scope.

std::bit_cast is

debugnik 2 hours ago | parent [-]

Oh cool, and it behaves like memcpy, not like pointer aliasing! I'm stuck with C++14 at work so I missed that one.