Boost logo

Boost :

Subject: Re: [boost] [1.55b1][coroutine][exception] not propagating exception type
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2013-10-29 15:20:14


On Tue, Oct 29, 2013 at 12:00 PM, Jeff Flinn <Jeffrey.Flinn_at_[hidden]> wrote:
> template< typename E >
> void f14(coro_void_void::caller_type & , E const& e)
> {
> throw e;
> }

I haven't checked but if boost::exception_ptr is used to transport
this exception to another thread, then you should call
boost::throw_exception instead of using throw directly.

--
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