News for hackers. Stuff that matters.
Re:An Incoherent Rust by TuxSH on Tuesday March 24, 2026 @05:45AM (#47500396)
> But reinterpret_cast isn't valid in a constexpr scope.

std::bit_cast is

Re:An Incoherent Rust by debugnik on Tuesday March 24, 2026 @05:55AM (#47500467)
Oh cool, and it behaves like memcpy, not like pointer aliasing! I'm stuck with C++14 at work so I missed that one.