|
Boost : |
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk