[cfe-dev] Sometimes throwing constructors / destructors

Tim Northover t.p.northover at gmail.com
Fri Jul 25 01:43:24 PDT 2014


Hi Arnaud,

On 25 July 2014 09:23, Arnaud A. de Grandmaison
<arnaud.degrandmaison at arm.com> wrote:
> Why don’t we get an invoke for the first temporary constructor or destructor
> call ?

Isn't it because there's nothing to clean up if the very first
constructor called fails, so unwinding can just pass through this
frame without action? However, if the second one fails you have to
destroy the first object properly.

Similarly there's nothing that needs to be done if the very last
destructor throws.

Cheers.

Tim.




More information about the cfe-dev mailing list