namespace std {class bad_cast :public exception {public:// see [exception] for the specification of the special member functionsconstchar* what()constnoexceptoverride;
};
}
The class
bad_cast
defines the type of objects thrown
as exceptions by the implementation to report the execution of an invalid
dynamic_cast
expression ([expr.dynamic.cast]).