aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-07-25 23:08:14 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2024-07-30 21:14:28 +0100
commita9e472c6b748abde55b5ecde2e2d98dcb2f96ded (patch)
tree97467bf6b836645ef6eb837b8c4abd560f177524 /gcc
parentacc70606c59e3f14072cc8a164362e728d8df5d6 (diff)
downloadgcc-a9e472c6b748abde55b5ecde2e2d98dcb2f96ded.zip
gcc-a9e472c6b748abde55b5ecde2e2d98dcb2f96ded.tar.gz
gcc-a9e472c6b748abde55b5ecde2e2d98dcb2f96ded.tar.bz2
libstdc++: Implement LWG 3886 for std::optional and std::expected
This uses remove_cv_t<T> for the default template argument used for deducing a type for a braced-init-list used with std::optional and std::expected. libstdc++-v3/ChangeLog: * include/std/expected (expected(U&&), operator=(U&&)) (value_or): Use remove_cv_t on default template argument, as per LWG 3886. * include/std/optional (optional(U&&), operator=(U&&)) (value_or): Likewise. * testsuite/20_util/expected/lwg3886.cc: New test. * testsuite/20_util/optional/cons/lwg3886.cc: New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions