$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-07-13 11:01:34
From: "Christian Thäter" <chth_at_[hidden]>
> > 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();
?
-- Peter Dimov Multi Media Ltd.