|
Boost : |
Subject: Re: [boost] Futures Review - future exceptions and boost::exception
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-01-06 18:01:23
On Tue, Jan 6, 2009 at 2:27 PM, vicente.botet <vicente.botet_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk