Your buffer is not a struct yet -- Mateusz Pusz

The third installment in Mateusz Pusz's series on C++ rules experienced developers quietly get wrong, this one works through when casting a byte buffer to a struct is undefined behavior and when it is not, using C++20 implicit-lifetime types and implicit object creation, and the C++23…

dev

Sources

Your buffer is not a struct yet -- Mateusz Pusz · TechNews