]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix std::expected<void, E>::swap(expected&) [PR105154]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 8 Apr 2022 17:17:47 +0000 (18:17 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 8 Apr 2022 17:30:06 +0000 (18:30 +0100)
commit0dfaf562521ba97c18398d027bf44a15f802f303
treec9c6a85127793bfa282135bfe6482335f589443f
parent29e355d0d671c7474935220e8bef784f05143820
libstdc++: Fix std::expected<void, E>::swap(expected&) [PR105154]

libstdc++-v3/ChangeLog:

PR libstdc++/105154
* include/std/expected (expected<void, E>::swap): Set
_M_has_value to false for objects that previously had a value.
* testsuite/20_util/expected/swap.cc: Fix test to check void
specialization.
libstdc++-v3/include/std/expected
libstdc++-v3/testsuite/20_util/expected/swap.cc