bad_typeid class — Exception for null pointer in typeid expressions
class bad_typeid : public exception { public: bad_typeid( ) throw( ); bad_typeid(const bad_typeid&) throw( ); bad_typeid& operator=(const bad_typeid&) throw( ); virtual ~bad_typeid( ) throw( ); virtual const char* what( ) const throw( ); };
The typeid
operator throws
bad_typeid
when it is applied to
an expression of the form *p
, in
which p
is a null pointer. See
typeid
in Chapter 3 for more
information.