
26 Nov
2008
26 Nov
'08
1:28 a.m.
Emil Dotchevski:
On Tue, Nov 25, 2008 at 4:40 PM, Peter Dimov <pdimov@pdimov.com> 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