[any.bad.any.cast]

# 22 General utilities library [[utilities]](./#utilities)

## 22.7 Storage for any type [[any]](any#bad.any.cast)

### 22.7.3 Class bad_any_cast [any.bad.any.cast]

[ð](#lib:bad_any_cast)

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

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L7077)

Objects of type bad_any_cast are thrown by a failed[any_cast](any.nonmembers#lib:any_cast "22.7.5 Non-member functions [any.nonmembers]")[.](#1.sentence-1)

[ð](#lib:what,bad_any_cast)

`const char* what() const noexcept override;
`

[2](#2)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L7087)

*Returns*: An implementation-defined ntbs[.](#2.sentence-1)
