Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
TuxSH
· 8mo ago · 0 comments
> But reinterpret_cast isn't valid in a constexpr scope.
std::bit_cast is
Comments
[–]
debugnik
8mo ago
Oh cool, and it behaves like memcpy, not like pointer aliasing! I'm stuck with C++14 at work so I missed that one.