$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-10-18 07:15:27
From: "Greg Colvin" <gcolvin_at_[hidden]>
> I'd like some feedback on the appended bug report.
[...]
Yes, I believe that this is a genuine bug.
My proposed
void reset(T * p = 0)
{
shared_ptr(p).swap(*this);
}
semantics (that apply to operator= as well) do not suffer from the problem
AFAICS.
-- Peter Dimov Multi Media Ltd.