2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-02-18 02:02:13 +00:00

context_activator modified to avoid virtual function calls on context activation/deactivation

This commit is contained in:
Emil Dotchevski
2019-11-04 12:04:02 -08:00
parent 80ccf4726f
commit 4b6110bb37
14 changed files with 77 additions and 75 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);
leaf::context_activator<> active_context(ctx, leaf::on_deactivation::do_not_propagate);
throw leaf::exception(std::exception(), info<1>{1});
}