summaryrefslogtreecommitdiff
path: root/src/command_manager.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-09-01 13:03:01 +1000
committerMaxime Coste <mawww@kakoune.org>2019-09-01 13:04:47 +1000
commit4c4eb61c188347f6956dfcd075e190c79f0a970c (patch)
tree4a39400d0dc21244066c77ab07d930848beeed04 /src/command_manager.hh
parentb24be99fa3e684201faed534c5988940d561df35 (diff)
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.
Diffstat (limited to 'src/command_manager.hh')
-rw-r--r--src/command_manager.hh2
1 files changed, 1 insertions, 1 deletions
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<String (String)>& postprocess);
+ const FunctionRef<String (String)>& postprocess);
}