Skip to content

Commit 0b52533

Browse files
chris-durandsalkinium
authored andcommitted
Remove dependencies on exception types
1 parent 471e1ce commit 0b52533

14 files changed

+21
-2454
lines changed

include/any

+1-19
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ namespace std
4545
#include <new>
4646
#include <utility>
4747
#include <type_traits>
48+
#include <bits/functexcept.h>
4849

4950
namespace std _GLIBCXX_VISIBILITY(default)
5051
{
@@ -55,25 +56,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
5556
* @{
5657
*/
5758

58-
/**
59-
* @brief Exception class thrown by a failed @c any_cast
60-
* @ingroup exceptions
61-
*/
62-
class bad_any_cast : public bad_cast
63-
{
64-
public:
65-
virtual const char* what() const noexcept { return "bad any_cast"; }
66-
};
67-
68-
[[gnu::noreturn]] inline void __throw_bad_any_cast()
69-
{
70-
#if __cpp_exceptions
71-
throw bad_any_cast{};
72-
#else
73-
__builtin_abort();
74-
#endif
75-
}
76-
7759
#define __cpp_lib_any 201606L
7860

7961
/**

include/bits/exception.h

-84
This file was deleted.

include/bits/exception_ptr.h

-224
This file was deleted.

0 commit comments

Comments
 (0)