
10 Sep
2008
10 Sep
'08
9:42 a.m.
vicente.botet:
The previous documented semantics do not requires that the exception parameter should be derived from std::exception
They do, it just wasn't explicitly stated, and wasn't tested (which allowed one to throw enums by mistake). If 'e' doesn't derive from std::exception, the code won't compile when BOOST_NO_EXCEPTIONS is defined, and the original purpose of boost::throw_exceptions was precisely to support the case when BOOST_NO_EXCEPTIONS is defined.