mirror of
https://github.com/boostorg/context.git
synced 2026-01-19 04:02:17 +00:00
restore exception state after destruction of fiber
This commit is contained in:
@@ -344,6 +344,8 @@ public:
|
||||
|
||||
~fiber() {
|
||||
if ( BOOST_UNLIKELY( nullptr != fctx_) ) {
|
||||
detail::manage_exception_state exstate;
|
||||
boost::ignore_unused(exstate);
|
||||
detail::ontop_fcontext(
|
||||
#if defined(BOOST_NO_CXX14_STD_EXCHANGE)
|
||||
detail::exchange( fctx_, nullptr),
|
||||
|
||||
Reference in New Issue
Block a user