2
0
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:
Oliver Kowalke
2016-02-03 16:55:44 +01:00
parent 59a4317bf3
commit ea1003b48a

View File

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