Share this postDaily bit(e) of C++Daily bit(e) of C++ | std::bit_castCopy linkFacebookEmailNotesMoreDaily bit(e) of C++ | std::bit_castDaily bit(e) of C++ #360, The C++20 type punning cast: std::bit_cast.Šimon TóthDec 27, 20231Share this postDaily bit(e) of C++Daily bit(e) of C++ | std::bit_castCopy linkFacebookEmailNotesMoreShareC++20 introduced a new cast that is specifically designed for type-punning: std::bit_cast.Unlike reinterpret_cast, std::bit_cast is permitted in constexpr contexts.Click to open in Compiler Explorer.Leave a commentThanks for reading Daily bit(e) of C++! Subscribe for free to receive new posts and support my work.Subscribe