|
Boost : |
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2003-09-12 22:22:08
>From the documentation:
>The C++ built-in dynamic_cast can be used for downcasts and crosscasts of
pointers to polymorphic objects, but error notification in the form of a
>returned value of 0 is inconvenient to test, or worse yet, easy to forget
to test. The polymorphic_cast template performs a dynamic_cast, and throws
an >exception if the dynamic_cast returns 0.
what is the difference between this and
dynamic_cast<Derived&>( *obj ) ?
Thorsten Ottosen
----------------------------
Dezide Aps
www.dezide.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk