Skip to content

Commit 3af0091

Browse files
authored
Merge pull request #303 from NaN-git/fix-#302
restore exception state after destruction of fiber
2 parents d6c1beb + c79564d commit 3af0091

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/boost/context/fiber_fcontext.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ class fiber {
344344

345345
~fiber() {
346346
if ( BOOST_UNLIKELY( nullptr != fctx_) ) {
347+
detail::manage_exception_state exstate;
348+
boost::ignore_unused(exstate);
347349
detail::ontop_fcontext(
348350
#if defined(BOOST_NO_CXX14_STD_EXCHANGE)
349351
detail::exchange( fctx_, nullptr),

0 commit comments

Comments
 (0)