From 09729c6eba0d005ef6dc1ba5aeacd18f09a8b0df Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Fri, 31 Jul 2015 08:59:19 +0200 Subject: [PATCH] add comment related to derrred-call --- include/boost/fiber/fiber_context.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/fiber/fiber_context.hpp b/include/boost/fiber/fiber_context.hpp index 3c075022..37023f26 100644 --- a/include/boost/fiber/fiber_context.hpp +++ b/include/boost/fiber/fiber_context.hpp @@ -186,7 +186,9 @@ public: flags_( 0), splk_(), ctx_( palloc, salloc, - // general lambda with moveable + // lambda, executed in execution context + // mutable: generated operator() is not const -> enables std::move( fn) + // std::make_tuple: stores decayed copies of its args, implicitly unwraps std::reference_wrapper [=,fn=std::forward< Fn >( fn),tpl=std::make_tuple( std::forward< Args >( args) ...)] () mutable -> decltype( auto) { try { BOOST_ASSERT( is_running() );