VMS Help
CXXLSTD, Runtime Support, bad_cast

 *Conan The Librarian

 			   Standard C++	Library

 NAME

   bad_cast - defines the type of object	thrown by the implementation
   as	an exception to report execution	of an invalid
   dynamic-cast expression.

 SYNOPSIS

   #include <typeinfo>

   namespace std	{
     class bad_cast : public exception {
     public:
       bad_cast() throw();
       bad_cast(const bad_cast&)	throw();
       bad_cast&	operator=(const	bad_cast&) throw();
       virtual ~bad_cast() throw();
       virtual const char* what() const throw();
     };
   }

 DESCRIPTION

   bad_cast() throw();

   This function	constructs an object of	class bad_cast.

   bad_cast(const bad_cast&) throw();
   bad_cast& operator=(const bad_cast&) throw();

   These	functions copy an object of class bad_cast.

   virtual const	char* what() const throw();

   what() returns a string providing information	about the error.  The
   string returned by what() is	implementation defined.

 SEE ALSO

   exception, dynamic_cast

 STANDARDS CONFORMANCE
   ANSI X3J16/ISO WG21 Joint C++	Committee
  Close     Help