$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: williamkempf_at_[hidden]
Date: 2001-07-13 13:02:11
--- In boost_at_y..., "Peter Dimov" <pdimov_at_m...> wrote:
> From: "Christian Thäter" <chth_at_g...>
> > > Excuse me for breaking in where I probably don't belong, but
I'm not
> > > sure I'm understanding what you're asking. Do you expect to
have the
> > > following semantics?
> > >
> > > shared_ptr<foo> p1(new foo());
> > > shared_ptr<foo> p2(p1);
> > > p1.reset(new foo());
> > > assert(p1.get() == p2.get());
> >
> > Yes
>
> What exactly is wrong with
>
> *p1 = foo();
Nothing, but this is not the same thing, so I'm not sure what you're
driving at.
Bill Kempf