2
0
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:
Philipp Otterbein
2025-05-10 03:27:05 +02:00
parent 3847230000
commit c79564d0de

View File

@@ -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),