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