$ errors.fyi/cpp/std--bad_cast 74 namespaces · 3,092 codes
cpp · cpp/std--bad_cast
std--bad_cast

std::bad_cast

Thrown by dynamic_cast when the cast to a reference type fails because the object is not of the target type. Casting to a pointer type returns nullptr instead of throwing.

References

In this namespace

» community-maintained · contribute on GitHub npm i -g errors-fyi && errorfyi ENOENT