From ea1003b48a4df43614dc198474f6e49af6af0db2 Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Wed, 3 Feb 2016 16:55:44 +0100 Subject: [PATCH] cast function + arguments to rvalues before apply() --- include/boost/fiber/context.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/fiber/context.hpp b/include/boost/fiber/context.hpp index 407ae9a7..bb3ebfa0 100644 --- a/include/boost/fiber/context.hpp +++ b/include/boost/fiber/context.hpp @@ -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