aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-07-25 13:00:09 +0100
committerThomas Koenig <tkoenig@gcc.gnu.org>2024-07-28 19:05:58 +0200
commit69270c7452ce570a28e57840a350021c2b85fdd3 (patch)
treefacfa756e4604b5b92a730348d07c68b72cbd321 /gcc/cp/tree.cc
parent8fbee909fd8516a18e3677e837bda190ed9dccf7 (diff)
downloadgcc-69270c7452ce570a28e57840a350021c2b85fdd3.zip
gcc-69270c7452ce570a28e57840a350021c2b85fdd3.tar.gz
gcc-69270c7452ce570a28e57840a350021c2b85fdd3.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 'gcc/cp/tree.cc')
0 files changed, 0 insertions, 0 deletions