class bad_any_cast : public bad_cast { public: const char* what() const noexcept override; };
Objects of type bad_any_cast are thrown by a failed any_cast ([any.nonmembers]).