1349cc55cSDimitry Andric //===----------------------------------------------------------------------===// 20b57cec5SDimitry Andric // 30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric // 70b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric 981ad6265SDimitry Andric #include <any> 100b57cec5SDimitry Andric 110b57cec5SDimitry Andric namespace std { 12*cb14a3feSDimitry Andric const char* bad_any_cast::what() const noexcept { return "bad any cast"; } 13*cb14a3feSDimitry Andric } // namespace std 140b57cec5SDimitry Andric 150b57cec5SDimitry Andric #include <experimental/__config> 160b57cec5SDimitry Andric 170b57cec5SDimitry Andric // Preserve std::experimental::any_bad_cast for ABI compatibility 180b57cec5SDimitry Andric // Even though it no longer exists in a header file 190b57cec5SDimitry Andric _LIBCPP_BEGIN_NAMESPACE_LFTS 200b57cec5SDimitry Andric 21*cb14a3feSDimitry Andric class _LIBCPP_EXPORTED_FROM_ABI _LIBCPP_AVAILABILITY_BAD_ANY_CAST bad_any_cast : public bad_cast { 220b57cec5SDimitry Andric public: 23fe6060f1SDimitry Andric virtual const char* what() const noexcept; 240b57cec5SDimitry Andric }; 250b57cec5SDimitry Andric 26*cb14a3feSDimitry Andric const char* bad_any_cast::what() const noexcept { return "bad any cast"; } 270b57cec5SDimitry Andric 280b57cec5SDimitry Andric _LIBCPP_END_NAMESPACE_LFTS 29