diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-09-26 17:08:39 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-09-26 17:08:39 +0100 |
commit | 7a9942f52157987785e964fe602306d477d1885e (patch) | |
tree | 66954878a69708cc1f8758998654506c78e89378 /gcc/function.c | |
parent | d5f7e04923c5fe55db12e7da006c41c3853b4ddb (diff) | |
download | gcc-7a9942f52157987785e964fe602306d477d1885e.zip gcc-7a9942f52157987785e964fe602306d477d1885e.tar.gz gcc-7a9942f52157987785e964fe602306d477d1885e.tar.bz2 |
Implement C++20 constexpr changes to std::pair (P1032R1)
* include/bits/stl_pair.h (pair): Add _GLIBCXX20_CONSTEXPR to
piecewise construction constructor, assignment operators, and swap.
* include/std/tuple (pair::pair(piecewise_construct_t, tuple, tuple)):
Add _GLIBCXX20_CONSTEXPR.
(pair::pair(tuple, tuple, _Index_tuple, _Index_tuple)): Likewise.
* testsuite/20_util/pair/constexpr_assign.cc: New test.
* testsuite/20_util/pair/constexpr_swap.cc: New test.
From-SVN: r276154
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions