
29 Oct
2013
29 Oct
'13
7:46 p.m.
On 10/29/2013 3:20 PM, Emil Dotchevski wrote:
On Tue, Oct 29, 2013 at 12:00 PM, Jeff Flinn
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.
Indeed! template< typename E > void f14(coro_void_void::caller_type & , E const& e) { boost::throw_exception(e); } works as expected. Oliver suggested: boost::throw_exception(boost::enable_current_exception(e)); As the previous gives me the expected behavior(at least on the surface), I'm not sure what this latter provides even after a quick read of the docs. Thanks, Jeff