summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/Makefile.in
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-03-24 20:37:13 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-03-27 18:50:31 +0100
commitb78e0ce28b32a1b89886219c557506aeae6caffc (patch)
tree8c5b093cdb25333a6b26608b418a38dd8033b82f /libstdc++-v3/include/Makefile.in
parentd2906412ada87a4bdd6410060bc18a2c53c419b7 (diff)
libstdc++: Define std::expected for C++23 (P0323R12)
Because this adds a new class template called std::unexpected, we have to stop declaring the std::unexpected() function (which was deprecated in C++11 and removed in C++17). libstdc++-v3/ChangeLog: * doc/doxygen/user.cfg.in: Add new header. * include/Makefile.am: Likewise. * include/Makefile.in: Regenerate. * include/precompiled/stdc++.h: Add new header. * include/std/version (__cpp_lib_expected): Define. * libsupc++/exception [__cplusplus > 202002] (unexpected) (unexpected_handler, set_unexpected): Do not declare for C++23. * include/std/expected: New file. * testsuite/20_util/expected/assign.cc: New test. * testsuite/20_util/expected/cons.cc: New test. * testsuite/20_util/expected/illformed_neg.cc: New test. * testsuite/20_util/expected/observers.cc: New test. * testsuite/20_util/expected/requirements.cc: New test. * testsuite/20_util/expected/swap.cc: New test. * testsuite/20_util/expected/synopsis.cc: New test. * testsuite/20_util/expected/unexpected.cc: New test. * testsuite/20_util/expected/version.cc: New test.
Diffstat (limited to 'libstdc++-v3/include/Makefile.in')
-rw-r--r--libstdc++-v3/include/Makefile.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/include/Makefile.in b/libstdc++-v3/include/Makefile.in
index 88391a44d33..01bf3e0eb32 100644
--- a/libstdc++-v3/include/Makefile.in
+++ b/libstdc++-v3/include/Makefile.in
@@ -400,6 +400,7 @@ std_headers = \
${std_srcdir}/coroutine \
${std_srcdir}/deque \
${std_srcdir}/execution \
+ ${std_srcdir}/expected \
${std_srcdir}/filesystem \
${std_srcdir}/forward_list \
${std_srcdir}/fstream \