$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2003-01-14 10:13:33
"Peter Dimov" <pdimov_at_[hidden]> writes:
> I'm thinking of renaming make_shared(weak_ptr), as the current
> similarity with make_pair is undesirable.
Why?
> The best replacement I can come up with is
> get_shared_ptr. I.e. instead of
>
> if(shared_ptr<X> px = make_shared(wp))
> {
> }
>
> the pattern will look like
>
> if(shared_ptr<X> px = get_shared_ptr(wp))
> {
> }
>
> Comments?
get_shared_ptr sounds a bit like the weak_ptr contains a shared_ptr.
> Suggestions?
to_shared[_ptr]
as_shared[_ptr]
?
-- David Abrahams dave_at_[hidden] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution