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…
Sources
- T1Your buffer is not a struct yet -- Mateusz PuszLanguage blogs: Rust / Go / TypeScript / Swift / Kotlin / Java / .NET / Ruby / PHP / Elixir / ISO C++