.TH "std::bad_cast" 3cxx "Thu Aug 2 2012" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::bad_cast \- .SH SYNOPSIS .br .PP .PP Inherits \fBstd::exception\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual const char * \fBwhat\fP () const throw ()" .br .in -1c .SH "Detailed Description" .PP Thrown during incorrect typecasting\&. .PP If you attempt an invalid \fCdynamic_cast\fP expression, an instance of this class (or something derived from this class) is thrown\&. .PP Definition at line 162 of file typeinfo\&. .SH "Member Function Documentation" .PP .SS "virtual const char* std::bad_cast::what () const throw ()\fC [virtual]\fP" Returns a C-style character string describing the general cause of the current error\&. .PP Reimplemented from \fBstd::exception\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.