Boost logo

Boost :

Subject: Re: [boost] [Thread] Win32 exception handling
From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-11-25 20:28:23


Emil Dotchevski:
> On Tue, Nov 25, 2008 at 4:40 PM, Peter Dimov <pdimov_at_[hidden]> wrote:
...
>> 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"? :)

But the current Boost.Thread implementation always uses catch(...), even on
compilers that do call terminate(), such as MSVC.

--
Peter Dimov
http://www.pdplayer.com 

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