Boost logo

Boost :

From: Dave Harris (brangdon_at_[hidden])
Date: 2004-08-09 17:36:18


In-Reply-To: <200408091418.i79EIu107210_at_[hidden]>
stewart_at_[hidden] (Rob Stewart) wrote (abridged):
> The whole point behind the names selected for the new-style casts
> was to make things more verbose.

Yes. And as a result, I know some people still sometimes use old-style
casts entirely because they are shorter.

I can see mine is a minority view, so now that I've made my plea I'll shut
up :-)

> Note that it can be written as follows when not casting to a
> different pointer type:
>
> boost::shared_ptr<Widget> p(boost::shared_ptr_cast(new Widget));

Thanks, that helps.

-- Dave Harris, Nottingham, UK


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