]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix constraints on std::optional converting constructors [PR117889]
authorJonathan Wakely <jwakely@redhat.com>
Sat, 30 Nov 2024 21:37:02 +0000 (21:37 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 3 Dec 2024 10:19:06 +0000 (10:19 +0000)
commit29bea6921d0e2e3dd20bc78926ef0e98b1b1e4ad
tree317c2d2dec5fcd46538ed73f875f58b0b19ae351
parent17c9c7c10a70d18dea5849d11a4fa382d3817fa1
libstdc++: Fix constraints on std::optional converting constructors [PR117889]

The converting constructors had the same bug as the converting
assignments, so need the same fix as r15-5833-gc2c7d71eeeab7c.

libstdc++-v3/ChangeLog:

PR libstdc++/117889
PR libstdc++/117858
* include/std/optional (optional(const optional<U>&)): Fix copy
and paste error in constraints.
(optional(optional<U>&&)): Likewise.
* testsuite/20_util/optional/assignment/117858.cc: Move to ...
* testsuite/20_util/optional/cons/117858.cc: New test.
libstdc++-v3/include/std/optional
libstdc++-v3/testsuite/20_util/optional/assignment/117858.cc [deleted file]
libstdc++-v3/testsuite/20_util/optional/cons/117858.cc [new file with mode: 0644]