2
0
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:
Emil Dotchevski
2019-11-11 17:21:37 -08:00
parent b099c6f967
commit c57a7300cb
14 changed files with 138 additions and 127 deletions

View File

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