+ 21.6 Strings library, Null-terminated sequence utilities: <cctype>, <cwctype>,...
[lightlibc++.git] / source / typeinfo.cpp
blob87d8759f98294c8890a87c2ccc73d548b857e5c6
1 /*
2 Permission is granted to use, modify, and / or redistribute at will.
4 This includes removing authorship notices, re-use of code parts in
5 other software (with or without giving credit), and / or creating a
6 commercial product based on it.
8 This permission is not revocable by the author.
10 This software is provided as-is. Use it at your own risk. There is
11 no warranty whatsoever, neither expressed nor implied, and by using
12 this software you accept that the author(s) shall not be held liable
13 for any loss of data, loss of service, or other damages, be they
14 incidental or consequential. Your only option other than accepting
15 this is not to use the software at all.
17 #include <typeinfo>
20 #ifndef _LIGHTLIBCPP_NO_RTTI
23 * class std::type_info
26 std::type_info::~type_info()
30 #endif
34 #ifndef _LIGHTLIBCPP_NO_EXCEPTIONS
37 * class std::bad_cast
40 std::bad_cast::~bad_cast() throw()
44 const char* std::bad_cast::what() const throw()
46 return "std::bad_cast";
52 * class std::bad_typeid
55 std::bad_typeid::~bad_typeid() throw()
59 const char* std::bad_typeid::what() const throw()
61 return "std::bad_typeid";
64 #endif