Boost logo

Boost :

From: Jody Hagins (jody-boost-011304_at_[hidden])
Date: 2005-03-23 18:15:23


On Wed, 23 Mar 2005 16:42:39 -0600
"Michael Goldshteyn" <mgoldshteyn_at_[hidden]> wrote:

> In any case, I now understand what it is doing. Perhaps this
> difference from dynamic cast should be documented more explicitly.

It is actually a little more sneaky than that. However, until changes
are made (I believe some ref overloads are planned for 1.33), casting a
ptr-to-any always returns a ptr-to-the-real-type and casting a
ref-to-any always returns a COPY of the real-type, or throws an
exception if the conversion can not be done.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk