236
|
1 //===----------------------------------------------------------------------===//
|
150
|
2 //
|
|
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
4 // See https://llvm.org/LICENSE.txt for license information.
|
|
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
6 //
|
|
7 //===----------------------------------------------------------------------===//
|
|
8
|
236
|
9 #include <any>
|
150
|
10
|
|
11 namespace std {
|
221
|
12 const char* bad_any_cast::what() const noexcept {
|
150
|
13 return "bad any cast";
|
|
14 }
|
|
15 }
|
|
16
|
|
17
|
|
18 #include <experimental/__config>
|
|
19
|
|
20 // Preserve std::experimental::any_bad_cast for ABI compatibility
|
|
21 // Even though it no longer exists in a header file
|
|
22 _LIBCPP_BEGIN_NAMESPACE_LFTS
|
|
23
|
252
|
24 class _LIBCPP_EXPORTED_FROM_ABI _LIBCPP_AVAILABILITY_BAD_ANY_CAST bad_any_cast : public bad_cast
|
150
|
25 {
|
|
26 public:
|
221
|
27 virtual const char* what() const noexcept;
|
150
|
28 };
|
|
29
|
221
|
30 const char* bad_any_cast::what() const noexcept {
|
150
|
31 return "bad any cast";
|
|
32 }
|
|
33
|
|
34 _LIBCPP_END_NAMESPACE_LFTS
|