Doug Mika <
doug...@gmail.com> wrote in
news:e4509378-0984-4446...@googlegroups.com:
> Why doesn't the following program throw a bad_cast exception? How can
> the cast possibly suceed?
It does not succeed - the resulting pointer will be NULL. The bad_cast
exception is thrown only when casting to a reference type. By using
either a pointer or a reference type you decide whether you want an
automatic exception or not.