Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-18 08:07:27


"Peter Dimov" <pdimov_at_[hidden]> writes:

> From: "David Abrahams" <dave_at_[hidden]>
>> >
>> > This doesn't look too good if you consider the possible boost->std
>> > transition. :-)
>>
>> But "sp" does? <wink>
>>
>> How about dynamic_pointer_cast<T>(x)?
>
> Fine with me. You are the LWG guy around here. Whatever you say. ;-)

   http://www.weebl.pwp.blueyonder.co.uk/crab.swf

>> Of course, we can make it work for regular pointers, too.
>
> That was kind of implied, yes

If 's' stands for "smart" it's also kind of ruled-out by your name.

> although I was more interested in extending
> the same syntax to intrusive_ptr and other (Loki-style, for instance) smart
> pointers.

Okay, then:

   Please consider dynamic_ptr_cast also. Normally I hate abbrevs, but
   all of our smart pointers have "ptr" in the name to it has a
   certain resonance.

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

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