]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Implement LWG 3836 for std::optional bool conversions
authorJonathan Wakely <jwakely@redhat.com>
Tue, 23 Jul 2024 11:45:37 +0000 (12:45 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 25 Jul 2024 10:53:06 +0000 (11:53 +0100)
commit75618d2fd72ccc1c0d76646ef3bb03cb137afdd2
treeca150c40b1b3ecae8d11b63988c4cef6465f6f74
parentdca6a9a940e46d0c2d115a4702d648529a42efa9
libstdc++: Implement LWG 3836 for std::optional bool conversions

libstdc++-v3/ChangeLog:

* include/std/optional (optional): Constrain constructors to
prevent problematic bool conversions, as per LWG 3836.
* testsuite/20_util/optional/cons/lwg3836.cc: New test.
libstdc++-v3/include/std/optional
libstdc++-v3/testsuite/20_util/optional/cons/lwg3836.cc [new file with mode: 0644]
This page took 0.06033 seconds and 5 git commands to generate.