diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-07-25 13:00:09 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-07-25 23:10:35 +0100 |
commit | 1489e281b549af8a76a415556c07e147df933a44 (patch) | |
tree | 8b6138b7ce1ccda7a0cf7ba47141898366014b2b /include/gdb/gdb-index.h | |
parent | a0b7d8e087f2a9eab996189854d1b4dc636b9d60 (diff) | |
download | gcc-1489e281b549af8a76a415556c07e147df933a44.zip gcc-1489e281b549af8a76a415556c07e147df933a44.tar.gz gcc-1489e281b549af8a76a415556c07e147df933a44.tar.bz2 |
libstdc++: Implement P2968R2 "Making std::ignore a first-class object"
This was recently approved for C++26, but we can apply the changes for
all modes back to C++11. There's no reason not to make the assignment
usable in constant expressions for C++11 mode, and noexcept for all
modes.
Move the definitions to <bits/utility.h> so they're available in
<utility> as well as <tuple>.
libstdc++-v3/ChangeLog:
* include/bits/utility.h (_Swallow_assign): Make assignment
constexpr for C++11 as well, and add noexcept.
* include/std/tuple (_Swallow_assign, ignore): Move to
bits/utility.h.
* testsuite/20_util/headers/utility/ignore.cc: New test.
Diffstat (limited to 'include/gdb/gdb-index.h')
0 files changed, 0 insertions, 0 deletions