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.
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.