any.cpp revision 353358
1292928Sdim//===---------------------------- any.cpp ---------------------------------===// 2292928Sdim// 3353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4353358Sdim// See https://llvm.org/LICENSE.txt for license information. 5353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6292928Sdim// 7292928Sdim//===----------------------------------------------------------------------===// 8292928Sdim 9314564Sdim#include "any" 10292928Sdim 11314564Sdimnamespace std { 12314564Sdimconst char* bad_any_cast::what() const _NOEXCEPT { 13314564Sdim return "bad any cast"; 14314564Sdim} 15314564Sdim} 16314564Sdim 17341825Sdim 18341825Sdim#include <experimental/__config> 19341825Sdim 20341825Sdim// Preserve std::experimental::any_bad_cast for ABI compatibility 21341825Sdim// Even though it no longer exists in a header file 22292928Sdim_LIBCPP_BEGIN_NAMESPACE_LFTS 23341825Sdim 24341825Sdimclass _LIBCPP_EXCEPTION_ABI _LIBCPP_AVAILABILITY_BAD_ANY_CAST bad_any_cast : public bad_cast 25341825Sdim{ 26341825Sdimpublic: 27341825Sdim virtual const char* what() const _NOEXCEPT; 28341825Sdim}; 29341825Sdim 30292928Sdimconst char* bad_any_cast::what() const _NOEXCEPT { 31292928Sdim return "bad any cast"; 32292928Sdim} 33341825Sdim 34292928Sdim_LIBCPP_END_NAMESPACE_LFTS 35