Boost logo

Boost :

From: Greg Colvin (gcolvin_at_[hidden])
Date: 2001-03-19 10:49:59


From: Kevlin Henney <kevlin_at_[hidden]>
> In message <073401c0b04d$7c592040$37781990_at_[hidden]>, Greg Colvin
> <gcolvin_at_[hidden]> writes
> >From: Kevlin Henney <kevlin_at_[hidden]>
> >> I may be mistaken, but I thought it had been discussed and possible code
> >> samples had been posted some time back -- something like
> >> dynamic_shared_cast.
> >
> >Yes, but that's as far as it got. I think the name was
> >do_dynamic_cast, and it was supposed to work with both raw
> >and smart pointers. Now that we have boost/cast.hpp we
> >have a home for such a beast, and could do worse than just
> >implementing a polymorphic_cast for shared_ptr.
>
> Yes, I vaguely recall now.
>
> I presume you are suggesting a polymorphic_cast definition just after
> the definition of shared_ptr, rather than coupling the two headers
> together?

Sounds like a plan.


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