Boost logo

Boost :

Subject: Re: [boost] D-style scope guards?
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2011-03-06 13:54:17


On 06.03.2011, at 16:05, Lorenzo Caminiti wrote:

> Shall I ignore this case and require main() to always catch for the
> C++ emulations of D-style scope guards to work?

I don't think you have a choice. You *cannot* guarantee code execution upon an uncaught exception, at least not portably.

Sebastian


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