karolherbst 🐧 🦀

karolherbst 🐧 🦀's avatar
karolherbst 🐧 🦀
npub1cpdz...umus
Mostly working on Rusticl and Nouveau Victim of the woke mind virus Asshole and Nazi free zone Freedesktop Code of Conduct Enforcement team member Private account, please direct all business inquiries to: https://twitter.com/karolherbst languages: en, de pfp is a head shot of a snowman with a red pot as its hat header is a photo of a full moon and leafless trees in front at night
C++ question: so if you allocate a C++ struct from a library with "new", is it undefined behavior what happens if the library changes the struct and you never recompile your original code (targeting the old struct)? Like can I expect that the size of allocate and the constructor gets called from the library and not inlined? I'm not really strong on the C++ semantics here.