"Peter Dimov" <[EMAIL PROTECTED]> writes: > From: "David Abrahams" <[EMAIL PROTECTED]> >> "Peter Dimov" <[EMAIL PROTECTED]> writes: >> >> > if(shared_ptr<X> px = make_shared(wp)) >> > { >> > // ... >> > } >> > >> > You still need to spell "shared_ptr<X>" in its entirety. >> >> I don't think so: >> >> some_function(make_shared(wp)); > > Of course you could do that as well, but my point is that the primary > purpose of make_* functions is argument deduction, and the primary purpose > of make_shared/get_shared_ptr is to support the idiom above, where argument > deduction isn't important.
So what about as_shared or to_shared? -- 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