Skip to content

Throw before reaching undefined behavior on AlignedNumber allocation

With this commit, AlignedNumber throws an exception whenever a placement new is made with a misaligned address. This should effectively catch an undefined behavior on the library implementations of operator new() under misaligned addresses.

Edited by Santiago Ospina De Los Ríos

Merge request reports

Loading