$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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