Emil Dotchevski | 7 Jan 00:01
Picon

Re: Futures Review - future exceptions and boost::exception

On Tue, Jan 6, 2009 at 2:27 PM, vicente.botet <vicente.botet <at> wanadoo.fr> wrote:
> Shouldn't future exceptions inherit from boost::exception in order to work with
boost::throw_exception and be able to transfer these exception between threads?

Inheritance from boost::exception does not guarantee the ability to
use current_exception/exception_ptr, throwing using
boost::throw_exception or BOOST_THROW_EXCEPTION does
(BOOST_THROW_EXCEPTION is preferable because it'll automatically
capture the file/line location of the throw.)

--

-- 
Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


Gmane