From 4c4eb61c188347f6956dfcd075e190c79f0a970c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 1 Sep 2019 13:03:01 +1000 Subject: Introduce FunctionRef to replace std::function when not storing std::function is not necessary when we just want to pass a type erased callback that does not need to own its target. FunctionRef provides that functionality for a much lower compile time cost. --- src/command_manager.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command_manager.hh') diff --git a/src/command_manager.hh b/src/command_manager.hh index 774b8b2c..8a3a9f23 100644 --- a/src/command_manager.hh +++ b/src/command_manager.hh @@ -168,7 +168,7 @@ String expand(StringView str, const Context& context, String expand(StringView str, const Context& context, const ShellContext& shell_context, - const std::function& postprocess); + const FunctionRef& postprocess); } -- cgit v1.2.3