|
Boost : |
From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-08-04 17:24:59
"Robert Bell" <belvis_at_[hidden]> wrote in message
news:cermd6$hkb$1_at_sea.gmane.org...
> Colin Rafferty wrote:
> > I would like to propose adding const_pointer_cast<> to shared_ptr,
in
> > exactly the same way that there is dynamic_pointer_cast<> and
> > static_pointer_cast<>.
> >
> > I am surprised that it is missing. Is there a reason for that?
> >
> > If not, I will submit a patch that implements this.
> >
> > Thanks.
>
> Isn't it already there? I see it on line 378 of shared_ptr.hpp in
boost
> 1.31.
Yes, here's the documentation:
http://www.boost.org/libs/smart_ptr/shared_ptr.htm#const_pointer_cast
Jonathan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk