53 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 <typeinfo>10 11namespace std12{13 14// type_info15 16type_info::~type_info()17{18}19 20// bad_cast21 22bad_cast::bad_cast() noexcept23{24}25 26bad_cast::~bad_cast() noexcept27{28}29 30const char*31bad_cast::what() const noexcept32{33 return "std::bad_cast";34}35 36// bad_typeid37 38bad_typeid::bad_typeid() noexcept39{40}41 42bad_typeid::~bad_typeid() noexcept43{44}45 46const char*47bad_typeid::what() const noexcept48{49 return "std::bad_typeid";50}51 52} // std53