Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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

std::bit_cast is

 help



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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: