- marked as trivial
- changed title to std::aligned_storage deprecated in C++23
- changed component to General
- changed milestone to 2023.3.0 release
C++23 deprecated std::aligned_storage: http://wg21.link/p1413. We make use of this in several places and these should be replaced with equivalent code that won’t trigger warnings once compilers implement p1413.
As of release 2022.9.0
std::aligned_storagehas been removed from our training materials, and in many use cases replaced withstd::optional.std::aligned_storageis still used in a few tests (for deprecated or undocumented serialization interfaces), and internally by a several library headers/modules (notably insidedetail::raw_storage). We should eventually remove the remaining references (at least in C++23 mode) to avoid warnings and comply with the capricious whims of the C++ committee.