Hacker News new | ask | show | jobs
by allo37 1604 days ago
It's such a good idea that they made a special cast that does just that in C++20: https://en.cppreference.com/w/cpp/numeric/bit_cast