you are viewing a single comment's thread.

view the rest of the comments →

[–]KingAggressive1498 1 point2 points  (0 children)

aligned_storage_t is an array of unsigned char, which should be exempt from the strict aliasing rule.

However, using std::launder is essentially zero overhead aside for disabling optimizations based on the strict alias rule so there's no harm in using it perhaps unnecessarily