Boost logo

Boost :

Subject: [boost] [exception] updated in the trunk and in the release branch
From: Emil Dotchevski (emil_at_[hidden])
Date: 2009-04-09 14:24:48


Two new functions added: current_exception_cast
(http://svn.boost.org/svn/boost/trunk/libs/exception/doc/current_exception_cast.html)
and current_exception_diagnostic_information
(http://svn.boost.org/svn/boost/trunk/libs/exception/doc/current_exception_diagnostic_information.html.)

There is a minor breaking change in the interface of the
get_error_info function: it used to return shared_ptr, now it returns
just a raw pointer:
http://svn.boost.org/svn/boost/trunk/libs/exception/doc/get_error_info.html.
This limits the lifetime of error_info objects to not exceed the
lifetime of the exception object, which could make custom
platform-specific error_info optimizations possible (the type of the
pointee is guaranteed to be copyable, so if the user needs to hold on
to it after the exception object has expired, they can simply copy it
instead of relying on shared_ptr to keep it afloat.)

-- 
Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode

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