5 Jul
2016
5 Jul
'16
6:36 p.m.
One remaining question/uncertainty: The documentation specifically states not to leak exceptions into the "stack base" or leaving entry function. On the other hand, stack unwinding works by throwing an exception (boost::context::detail::forced_unwind) ontop of the coroutine. That is a) not documented and 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. I would argue to put the exception definition into the context namespace. Michael