mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-19 02:12:24 +00:00
cast function + arguments to rvalues before apply()
This commit is contained in:
@@ -199,7 +199,7 @@ private:
|
||||
} else if ( nullptr != dp->ctx) {
|
||||
active_->set_ready_( dp->ctx);
|
||||
}
|
||||
boost::context::detail::apply( fn, tpl);
|
||||
boost::context::detail::apply( std::move( fn), std::move( tpl) );
|
||||
} catch ( fiber_interrupted const&) {
|
||||
}
|
||||
// terminate context
|
||||
|
||||
Reference in New Issue
Block a user