2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-02-17 13:52:14 +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

@@ -31,7 +31,7 @@ struct info
template <class Ctx>
void f( Ctx & ctx )
{
leaf::context_activator active_context(ctx, leaf::on_deactivation::do_not_propagate);
auto active_context = activate_context(ctx, leaf::on_deactivation::do_not_propagate);
throw leaf::exception(std::exception(), info<1>{1});
}