any.cpp revision 341825
1//===---------------------------- any.cpp ---------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is dual licensed under the MIT and the University of Illinois Open 6// Source Licenses. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10#include "any" 11 12namespace std { 13const char* bad_any_cast::what() const _NOEXCEPT { 14 return "bad any cast"; 15} 16} 17 18 19#include <experimental/__config> 20 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 24 25class _LIBCPP_EXCEPTION_ABI _LIBCPP_AVAILABILITY_BAD_ANY_CAST bad_any_cast : public bad_cast 26{ 27public: 28 virtual const char* what() const _NOEXCEPT; 29}; 30 31const char* bad_any_cast::what() const _NOEXCEPT { 32 return "bad any cast"; 33} 34 35_LIBCPP_END_NAMESPACE_LFTS 36