1 //===---------------------------- any.cpp ---------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
13 const char* bad_any_cast::what() const _NOEXCEPT {
14 return "bad any cast";
19 #include <experimental/__config>
21 // Preserve std::experimental::any_bad_cast for ABI compatibility
22 // Even though it no longer exists in a header file
23 _LIBCPP_BEGIN_NAMESPACE_LFTS
25 class _LIBCPP_EXCEPTION_ABI _LIBCPP_AVAILABILITY_BAD_ANY_CAST bad_any_cast : public bad_cast
28 virtual const char* what() const _NOEXCEPT;
31 const char* bad_any_cast::what() const _NOEXCEPT {
32 return "bad any cast";
35 _LIBCPP_END_NAMESPACE_LFTS