mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Release Cosmopolitan v3.6.0
This release is an atomic upgrade to GCC 14.1.0 with C23 and C++23
This commit is contained in:
parent
62ace3623a
commit
5660ec4741
1585 changed files with 117353 additions and 271644 deletions
|
@ -17,6 +17,9 @@
|
|||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
_LIBCPP_PUSH_MACROS
|
||||
#include <__undef_macros>
|
||||
|
||||
#if _LIBCPP_STD_VER >= 23
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
@ -24,23 +27,28 @@ _LIBCPP_BEGIN_NAMESPACE_STD
|
|||
template <class _Err>
|
||||
class bad_expected_access;
|
||||
|
||||
_LIBCPP_DIAGNOSTIC_PUSH
|
||||
# if !_LIBCPP_AVAILABILITY_HAS_BAD_EXPECTED_ACCESS_KEY_FUNCTION
|
||||
_LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wweak-vtables")
|
||||
# endif
|
||||
template <>
|
||||
class bad_expected_access<void> : public exception {
|
||||
class _LIBCPP_EXPORTED_FROM_ABI bad_expected_access<void> : public exception {
|
||||
protected:
|
||||
_LIBCPP_HIDE_FROM_ABI bad_expected_access() noexcept = default;
|
||||
_LIBCPP_HIDE_FROM_ABI bad_expected_access(const bad_expected_access&) = default;
|
||||
_LIBCPP_HIDE_FROM_ABI bad_expected_access(bad_expected_access&&) = default;
|
||||
_LIBCPP_HIDE_FROM_ABI bad_expected_access& operator=(const bad_expected_access&) = default;
|
||||
_LIBCPP_HIDE_FROM_ABI bad_expected_access& operator=(bad_expected_access&&) = default;
|
||||
_LIBCPP_HIDE_FROM_ABI_VIRTUAL ~bad_expected_access() override = default;
|
||||
_LIBCPP_HIDE_FROM_ABI bad_expected_access() noexcept = default;
|
||||
_LIBCPP_HIDE_FROM_ABI bad_expected_access(const bad_expected_access&) noexcept = default;
|
||||
_LIBCPP_HIDE_FROM_ABI bad_expected_access(bad_expected_access&&) noexcept = default;
|
||||
_LIBCPP_HIDE_FROM_ABI bad_expected_access& operator=(const bad_expected_access&) noexcept = default;
|
||||
_LIBCPP_HIDE_FROM_ABI bad_expected_access& operator=(bad_expected_access&&) noexcept = default;
|
||||
_LIBCPP_HIDE_FROM_ABI_VIRTUAL ~bad_expected_access() override = default;
|
||||
|
||||
public:
|
||||
// The way this has been designed (by using a class template below) means that we'll already
|
||||
// have a profusion of these vtables in TUs, and the dynamic linker will already have a bunch
|
||||
// of work to do. So it is not worth hiding the <void> specialization in the dylib, given that
|
||||
// it adds deployment target restrictions.
|
||||
# if _LIBCPP_AVAILABILITY_HAS_BAD_EXPECTED_ACCESS_KEY_FUNCTION
|
||||
const char* what() const noexcept override;
|
||||
# else
|
||||
_LIBCPP_HIDE_FROM_ABI_VIRTUAL const char* what() const noexcept override { return "bad access to std::expected"; }
|
||||
# endif
|
||||
};
|
||||
_LIBCPP_DIAGNOSTIC_POP
|
||||
|
||||
template <class _Err>
|
||||
class bad_expected_access : public bad_expected_access<void> {
|
||||
|
@ -60,4 +68,6 @@ _LIBCPP_END_NAMESPACE_STD
|
|||
|
||||
#endif // _LIBCPP_STD_VER >= 23
|
||||
|
||||
_LIBCPP_POP_MACROS
|
||||
|
||||
#endif // _LIBCPP___EXPECTED_BAD_EXPECTED_ACCESS_H
|
||||
|
|
1447
third_party/libcxx/__expected/expected.h
vendored
1447
third_party/libcxx/__expected/expected.h
vendored
File diff suppressed because it is too large
Load diff
5
third_party/libcxx/__expected/unexpected.h
vendored
5
third_party/libcxx/__expected/unexpected.h
vendored
|
@ -31,6 +31,9 @@
|
|||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
_LIBCPP_PUSH_MACROS
|
||||
#include <__undef_macros>
|
||||
|
||||
#if _LIBCPP_STD_VER >= 23
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
@ -119,4 +122,6 @@ _LIBCPP_END_NAMESPACE_STD
|
|||
|
||||
#endif // _LIBCPP_STD_VER >= 23
|
||||
|
||||
_LIBCPP_POP_MACROS
|
||||
|
||||
#endif // _LIBCPP___EXPECTED_UNEXPECTED_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue