diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-12-15 15:47:38 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-12-16 20:59:19 +0000 |
commit | 8d9e2776a6d2bfe6662f79182e85ab79f3cc9522 (patch) | |
tree | 7b22eb46864c3f12e0b90766c27b22ce8155d424 /libstdc++-v3/include/std/version | |
parent | 59822c39207c9e8be576e9d6c3370bd85ddaf886 (diff) | |
download | gcc-8d9e2776a6d2bfe6662f79182e85ab79f3cc9522.zip gcc-8d9e2776a6d2bfe6662f79182e85ab79f3cc9522.tar.gz gcc-8d9e2776a6d2bfe6662f79182e85ab79f3cc9522.tar.bz2 |
libstdc++: Add monadic operations to std::expected for C++23 (P2505R5)
This was approved for C++23 last month in Kona.
libstdc++-v3/ChangeLog:
* include/std/expected (expected): Add monadic operations.
(expected<void, E>): Likewise.
* include/std/version (__cpp_lib_expected): Bump value.
* testsuite/20_util/expected/synopsis.cc: Adjust expected macro
value.
* testsuite/20_util/expected/version.cc: Likewise.
* testsuite/20_util/expected/illformed_neg.cc: Prune additional
errors from ill-formed monadic operations.
* testsuite/20_util/expected/observers.cc: Check error_or.
* testsuite/20_util/expected/monadic.cc: New test.
Diffstat (limited to 'libstdc++-v3/include/std/version')
-rw-r--r-- | libstdc++-v3/include/std/version | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version index 61718eb..576eebc 100644 --- a/libstdc++-v3/include/std/version +++ b/libstdc++-v3/include/std/version @@ -306,7 +306,7 @@ #define __cpp_lib_constexpr_charconv 202207L #define __cpp_lib_constexpr_typeinfo 202106L #if __cpp_concepts >= 202002L -# define __cpp_lib_expected 202202L +# define __cpp_lib_expected 202211L #endif #define __cpp_lib_invoke_r 202106L #define __cpp_lib_is_scoped_enum 202011L |