Boost logo

Boost :

Subject: Re: [boost] [1.55b1][coroutine][exception] not propagating exception type
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2013-10-29 15:17:01


2013/10/29 Jeff Flinn <Jeffrey.Flinn_at_[hidden]>

> I'm on VS2013, with BOOST_COROUTINES_V1 defined. I've merged
> boost::coroutine's exception test with boost::exception's
> derives_std_exception test. A std::exception& is caught when based on docs
> I would expect derives_std_exception to be caught. Am I doing something
> obviously wrong?
>

coroutine uses boost::exception_ptr in order to transport exceptions - it
tries to get the type nearest to the exception type. you could try:

boost::throw_exception(boost::enable_current_exception(e)); instead of
throw e;


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