Boost logo

Boost :

Subject: Re: [boost] [Thread] Win32 exception handling
From: Emil Dotchevski (emil_at_[hidden])
Date: 2008-11-25 20:13:46


On Tue, Nov 25, 2008 at 4:40 PM, Peter Dimov <pdimov_at_[hidden]> wrote:
> Emil Dotchevski:
>
>> So the question is what's better for boost::thread, to conform to the
>> C++ standard -- which in the scenario I outlined and Dave had in mind
>> can only be done using catch(...) -- or to leave conformance up to the
>> compiler, meaning terminate() may not be called when it should, but
>> assuming that that is a bug (which may not be the case, as Dave
>> pointed out) you'll get a better error message.
>
> This is a false dilemma. There is a third option: use catch(...) only when
> the compiler doesn't call terminate() itself.

Naturally -- why'd boost::thread use catch(...) otherwise? To call
terminate() "better"? :)

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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