brintos

brintos / llvm-project-archived public Read only

0
0
Text · 893 B · f3fc715 Raw
29 lines · cpp
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#include <any>10 11namespace std {12const char* bad_any_cast::what() const noexcept { return "bad any cast"; }13} // namespace std14 15#include <__config>16 17//  Preserve std::experimental::any_bad_cast for ABI compatibility18//  Even though it no longer exists in a header file19_LIBCPP_BEGIN_NAMESPACE_LFTS20 21class _LIBCPP_EXPORTED_FROM_ABI bad_any_cast : public bad_cast {22public:23  virtual const char* what() const noexcept;24};25 26const char* bad_any_cast::what() const noexcept { return "bad any cast"; }27 28_LIBCPP_END_NAMESPACE_LFTS29