Path: blob/main/system/lib/libcxx/src/any.cpp
6175 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include <any>910namespace std {11const char* bad_any_cast::what() const noexcept { return "bad any cast"; }12} // namespace std1314#include <__config>1516// Preserve std::experimental::any_bad_cast for ABI compatibility17// Even though it no longer exists in a header file18_LIBCPP_BEGIN_NAMESPACE_LFTS1920class _LIBCPP_EXPORTED_FROM_ABI bad_any_cast : public bad_cast {21public:22virtual const char* what() const noexcept;23};2425const char* bad_any_cast::what() const noexcept { return "bad any cast"; }2627_LIBCPP_END_NAMESPACE_LFTS282930