Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-12-15 13:56:35


"Peter Dimov" <pdimov_at_[hidden]> writes:

> David Abrahams wrote:
>> "Peter Dimov" <pdimov_at_[hidden]> writes:
>>
>>> You can use px.reset( function().release() ), as there is a reset(
>>> Y* ).
>>
>> I feel compelled to point out that this idiom opens exception safety
>> holes where the other one wouldn't.
>
> I don't think it does... both are strong guarantee.

I was just thinking that you might do that in an expression involving
something that could throw. But looking again, if it's possible at all,
it would take some wild contortions. So I think I was wrong. Sorry.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk