libstdc++: Fix constraints on std::expected<void, E> constructor [PR105153]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 8 Apr 2022 17:26:23 +0000 (18:26 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 8 Apr 2022 17:30:07 +0000 (18:30 +0100)
commit7b4495d3c4040d8f56c05dd254d76269d4471623
treeb014f6b9019a46e2341f5073506589433cb85467
parent0dfaf562521ba97c18398d027bf44a15f802f303
libstdc++: Fix constraints on std::expected<void, E> constructor [PR105153]

libstdc++-v3/ChangeLog:

PR libstdc++/105153
* include/std/expected
(expected<void,E>::expected(expected<U,G>&&)): Fix constraints.
* testsuite/20_util/expected/cons.cc: Check constructor.
libstdc++-v3/include/std/expected
libstdc++-v3/testsuite/20_util/expected/cons.cc