Boost logo

Boost :

From: Kevlin Henney (kevlin_at_[hidden])
Date: 2001-03-19 05:24:49


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?

Kevlin
____________________________________________________________

  Kevlin Henney phone: +44 117 942 2990
  Curbralan Limited mobile: +44 7801 073 508
  mailto:kevlin_at_[hidden] fax: +44 870 052 2289
  http://www.curbralan.com
____________________________________________________________


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