diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-08-28 13:07:47 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-09-03 15:08:44 +0100 |
commit | dee3c5c6ff9952204af3014383593e8d316250e4 (patch) | |
tree | c2f28ebde72efea7cd0f59b3200ea76e99de209e /gcc | |
parent | efe6efb6f315c7f97be8a850e0a84ff7f6651d85 (diff) | |
download | gcc-dee3c5c6ff9952204af3014383593e8d316250e4.zip gcc-dee3c5c6ff9952204af3014383593e8d316250e4.tar.gz gcc-dee3c5c6ff9952204af3014383593e8d316250e4.tar.bz2 |
libstdc++: Simplify std::any to fix -Wdeprecated-declarations warning
We don't need to use std::aligned_storage in std::any. We just need a
POD type of the right size. The void* union member already ensures the
alignment will be correct. Avoiding std::aligned_storage means we don't
need to suppress a -Wdeprecated-declarations warning.
libstdc++-v3/ChangeLog:
* include/experimental/any (experimental::any::_Storage): Use
array of unsigned char instead of deprecated
std::aligned_storage.
* include/std/any (any::_Storage): Likewise.
* testsuite/20_util/any/layout.cc: New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions