Re: [boost] shared_ptr improvement proposal

9 Aug
2004
9 Aug
'04
10:36 p.m.
In-Reply-To: <200408091418.i79EIu107210@entwistle.systems.susq.com> stewart@sig.com (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
7610
Age (days ago)
7610
Last active (days ago)
0 comments
1 participants
participants (1)
-
brangdon@cix.compulink.co.uk