29 Oct
2013
29 Oct
'13
7:17 p.m.
2013/10/29 Jeff Flinn
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;