mirror of
https://github.com/boostorg/leaf.git
synced 2026-02-01 20:42:17 +00:00
activate_context function template
This commit is contained in:
@@ -70,7 +70,7 @@ struct io_task_context
|
||||
asio::post( io_ctx,
|
||||
[=]() mutable
|
||||
{
|
||||
leaf::context_activator active_context(*err_ctx, leaf::on_deactivation::do_not_propagate);
|
||||
auto active_context = activate_context(*err_ctx, leaf::on_deactivation::do_not_propagate);
|
||||
f();
|
||||
} );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user