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:
@@ -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});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user