|
Boost Users : |
Subject: Re: [Boost-users] State of context and coroutine
From: Michael Steinberg (michsteinb_at_[hidden])
Date: 2016-07-05 14:36:54
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
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