Boost logo

Boost :

Subject: Re: [boost] Policy proposal: All user-visible exceptions should be thrown through BOOST_THROW_EXCEPTION
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2012-06-28 16:16:05


On Thu, Jun 28, 2012 at 10:42 AM, Brian Wood <woodbrian77_at_[hidden]> wrote:

> I haven't found much on use cases in single threaded programs.
> Do you have any links? I did find the following comment in some
> code that uses exception_ptr.
>

Any time when a failure can't be handled at the time it is reported, which
usually involves asynchronous operations, which usually involves multiple
threads.

> "The reason here is that construction/destruction of an exception_ptr
> are not "cheap""
>

Calling boost::throw_exception doesn't construct or destruct exception_ptr
objects. Any use of boost::exception_ptr requires #including
<boost/exception_ptr.hpp>.

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