Boost logo

Boost Users :

Subject: Re: [Boost-users] State of context and coroutine
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2016-07-06 01:40:11


2016-07-05 20:36 GMT+02:00 Michael Steinberg <michsteinb_at_[hidden]>:

> a) not documented

http://www.boost.org/doc/libs/1_61_0/libs/coroutine2/doc/html/coroutine2/coroutine/asymmetric.html
'Code executed by *coroutine-function* must not prevent the propagation of
the *detail::forced_unwind* exception. Absorbing that exception will cause
stack unwinding to fail. Thus, any code that catches all exceptions must
re-throw any pending *detail::forced_unwind* exception.'

> b) the exception is defined in the detail namespace. That means, one has
> to use a detail-member to rethrow the one exception that has to leave the
> coroutine client entry function.
>

do not absorb exception detail::forced_unwind, e.g. do not use 'catch(...)'



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net