]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Implement LWG 3836 for std::expected bool conversions
authorJonathan Wakely <jwakely@redhat.com>
Wed, 24 Jul 2024 17:08:03 +0000 (18:08 +0100)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 28 Jul 2024 17:05:56 +0000 (19:05 +0200)
commitab1a0e683d8a10bcd59aab38e44bbce57c35bb49
tree864d7a1db367f16f45a14de0448cf100ff9eb2e2
parenta9273a2991a74421f4627145f520a1eaf37736c7
libstdc++: Implement LWG 3836 for std::expected bool conversions

libstdc++-v3/ChangeLog:

* include/std/expected (expected): Constrain constructors to
prevent problematic bool conversions, as per LWG 3836.
* testsuite/20_util/expected/lwg3836.cc: New test.
libstdc++-v3/include/std/expected
libstdc++-v3/testsuite/20_util/expected/lwg3836.cc [new file with mode: 0644]