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

Boost list run by bdawes at, gregod at, cpdaniel at, john at