
26 Nov
2008
26 Nov
'08
12:40 a.m.
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.