Skip to content

Fix deprecated aligned_storage in PolymorphicSmallObject

Simon Praetorius requested to merge issue/deprecated-aligned-storage into master

Summary

The utility std::aligned_storage is marked deprecated and its use is discouraged. The reasons are explained in P1413R3 where also replacement suggestion is given. Additionally, the specialization for Len==0 is undefined behavior. This is fixed in the PolynormphicSmallObject implementation by providing a specialization for an own implementation of aligned storage.

Merge request reports

Loading