diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-11-30 21:37:02 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-11-30 21:39:17 +0000 |
commit | c2c7d71eeeab7c6e2a8124b53d6eae6c59781e79 (patch) | |
tree | 9474ce057d32bc1d38e51d6e2478aadbc1cb77ec /libgcc/libgcc2.h | |
parent | 91f4550e1700b7fcc15baa37cbcd517cc02dc975 (diff) | |
download | gcc-c2c7d71eeeab7c6e2a8124b53d6eae6c59781e79.zip gcc-c2c7d71eeeab7c6e2a8124b53d6eae6c59781e79.tar.gz gcc-c2c7d71eeeab7c6e2a8124b53d6eae6c59781e79.tar.bz2 |
libstdc++: Fix constraints on std::optional converting assignments [PR117858]
It looks like I copied these constraints from operator=(U&&) and didn't
correct them to account for the parameter being optional<U> not U.
libstdc++-v3/ChangeLog:
PR libstdc++/117858
* include/std/optional (operator=(const optional<U>&)): Fix copy
and paste error in constraints.
(operator=(optional<U>&&)): Likewise.
* testsuite/20_util/optional/assignment/117858.cc: New test.
Diffstat (limited to 'libgcc/libgcc2.h')
0 files changed, 0 insertions, 0 deletions