
"Emil Dotchevski" <emil@revergestudios.com> writes:
On 4/14/08, Anthony Williams <anthony_w.geo@yahoo.com> wrote:
I posted this to the boost list earlier, in the hope that it could be incorporated into boost.exception. I would be VERY happy for it to be part of boost.
I've just committed changes to the Boost Exception cloning support to make it N2179-complient. The implementation of current_exception() is similar to http://www.pdimov.com/cpp/N2179/exception_ptr.cpp.
I will update the Boost Exception documentation soon.
Antony, I would also like to incorporate your MSVC-specific support into Boost Exception. Without such compiler-specific support, for current_exception() to fully work, the user must call enable_current_exception() (which is part of Boost Exception) at the time of the throw. The plan is to make this call automatic directly in boost::throw_exception() (I will commit that change to boost/throw_exception.hpp as soon as I see the relevant Boost Exception tests pass on all supported platforms.)
That's excellent news. Thanks, Emil. Anthony -- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL