17 Language support library [support] (original) (raw)

17.7 Type identification [support.rtti]

17.7.4 Class bad_cast [bad.cast]

namespace std { class bad_cast : public exception { public: // see [exception] for the specification of the special member functions constexpr const char* what() const noexcept override;};}

The classbad_castdefines the type of objects thrown as exceptions by the implementation to report the execution of an invaliddynamic_castexpression ([expr.dynamic.cast]).

constexpr const char* what() const noexcept override;

Returns: An implementation-defined ntbs.