miniblog.
← Back to all posts
Wilfred Hughes
Apr 12, 2017 at 07:40
A pitfall in C++ low-level object creation and storage, and how to avoid it
https://whereswalden.com/2017/02/27/a-pitfall-in-c-low-level-object-creation-and-storage-and-how-to-avoid-it/
(optimisations vs strict aliasing)
A pitfall in C++ low-level object creation and storage, and how to avoid it
While doing a couple recent reviews, I’ve read lots of code trying to solve the same general problem. Some code wants to store an object of some type (more rarely, an object from among severa…