"Peter Dimov" <[EMAIL PROTECTED]> writes: > From: "David Abrahams" <[EMAIL PROTECTED]> >> > >> > 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 [EMAIL PROTECTED] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost