Files
cppdraft_translate/cppdraft/bad/cast.md
2025-10-25 03:02:53 +03:00

1.0 KiB

[bad.cast]

17 Language support library [support]

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 functionsconstexpr const char* what() const noexcept override; };}

1

#

The classbad_cast defines the type of objects thrown as exceptions by the implementation to report the execution of an invaliddynamic_cast expression ([expr.dynamic.cast]).

🔗

constexpr const char* what() const noexcept override;

2

#

Returns: An implementation-defined ntbs.