|
Boost : |
Subject: Re: [boost] Interest in breakable labeled scope emulation?
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2013-01-15 05:00:45
On Jan 14, 2013, at 7:49 AM, TONGARI <tongari95_at_[hidden]> wrote:
> 2013/1/14 TONGARI <tongari95_at_[hidden]>
>
>> 2013/1/14 Rob Stewart <robertstewart_at_[hidden]>
>>
>>> While I understand the value of being able to exit such compound scopes cleanly, goto is a poor solution as it bypasses destructors, which makes this idea error prone.
>>
>> No. At least for g++ & clang that I tested the stack is correctly unwound and the dtors are called.
>
> You may want to see 6.7/3 "Declaration statement". It's standard guaranteed.
Quite right. I was thinking of sethmp/longjmp when I wrote that. Sorry for the noise.
___
Rob
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk