2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-20 02:32:19 +00:00

use this in capture-list

This commit is contained in:
Oliver Kowalke
2015-11-22 14:42:28 +01:00
parent ca655a84d9
commit 6d3f00902f
4 changed files with 12 additions and 12 deletions

View File

@@ -172,7 +172,7 @@ context::context( dispatcher_context_t, boost::context::preallocated const& pall
flags_( flag_dispatcher_context),
scheduler_( nullptr),
ctx_( std::allocator_arg, palloc, salloc,
[=] (void * vp) -> void {
[this,sched] (void * vp) -> void {
if ( nullptr != vp) {
std::function< void() > * func( static_cast< std::function< void() > * >( vp) );
( * func)();