2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-11 11:42:23 +00:00

add comment related to derrred-call

This commit is contained in:
Oliver Kowalke
2015-07-31 08:59:19 +02:00
parent 7eac5d4e98
commit 09729c6eba

View File

@@ -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() );