10 #ifndef CHAISCRIPT_BAD_BOXED_CAST_HPP_ 11 #define CHAISCRIPT_BAD_BOXED_CAST_HPP_ 16 #include "../chaiscript_defines.hpp" 17 #include "../utility/static_string.hpp" 18 #include "type_info.hpp" 36 , m_what(std::move(t_what)) {
42 , m_what(
"Cannot perform boxed_cast") {
46 : m_what(std::move(t_what)) {
53 const char *
what() const noexcept
override {
return m_what.c_str(); }
56 const std::type_info *
to =
nullptr;
Compile time deduced information about a type.
Definition: type_info.hpp:27
Namespace chaiscript contains every API call that the average user will be concerned with...
Thrown in the event that a Boxed_Value cannot be cast to the desired type.
Definition: bad_boxed_cast.hpp:31
Type_Info from
Type_Info contained in the Boxed_Value.
Definition: bad_boxed_cast.hpp:55
Definition: static_string.hpp:11
const char * what() const noexcept override
Description of what error occurred.
Definition: bad_boxed_cast.hpp:53
const std::type_info * to
std::type_info of the desired (but failed) result type
Definition: bad_boxed_cast.hpp:56