From: Yuval Ronen (ronen_yuval_at_[hidden])
Date: 2005-12-08 04:42:20
Peter Dimov wrote:
> Yuval Ronen wrote:
>>Does that mean that on a stricter compiler, when passing a temporary
>>auto_ptr, I *have* to use the '.release()' way, and *can't* get the
>>strong exception guarantee?
> Yes it does, but when your source is a temporary, it doesn't make any
> difference; even if it's left unchanged by the constructor, it will be
> destroyed at the end of the full expression, along with the pointee.
Ok, I see. Thanks.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk