diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-04-28 17:46:01 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-04-28 17:56:51 +0100 |
commit | e1543e694dadf1ea70eb72325219bc0cdc914a35 (patch) | |
tree | 36e3876b1d3f5e82b548f7906df902ee1198d902 /gcc | |
parent | d96db15967e78d7cecea3b1cf3169ceb924678ac (diff) | |
download | gcc-e1543e694dadf1ea70eb72325219bc0cdc914a35.zip gcc-e1543e694dadf1ea70eb72325219bc0cdc914a35.tar.gz gcc-e1543e694dadf1ea70eb72325219bc0cdc914a35.tar.bz2 |
libstdc++: Simplify std::pair constraints using concepts
This re-implements the constraints on the std::pair constructors and
assignment operators in C++20 mode, to use concepts.
The non-standard constructors deprecated for PR 99957 are no longer
supported in C++20 mode, which requires some minor testsuite changes.
Otherwise all tests pass in C++20 mode.
libstdc++-v3/ChangeLog:
* include/bits/stl_pair.h (pair) [__cplusplus > 202002]: Add
new definitions for constructors and assignment operators using
concepts for constraints.
* testsuite/20_util/pair/cons/99957.cc: Disable for C++20 and
later.
* testsuite/20_util/pair/cons/explicit_construct.cc: Adjust
expected error messages to also match C++20 errors.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions