Throw before reaching undefined behavior on AlignedNumber allocation
- Dec 13, 2024
-
-
With this commit, AlignedNumber throws an exception whenever a placement new is made with a misaligned address. This should effectively catches an undefined behavior on the library implementations of operator new() under misaligned addresses.
-