From bb2b52600324abe4bcfb8e807618f1dc060bbeca Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 17 Jan 2021 19:06:56 +0100 Subject: [PATCH] Optimize away some potential copies --- src/wine-host/bridges/vst3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wine-host/bridges/vst3.h b/src/wine-host/bridges/vst3.h index 65ee768a..7183bacb 100644 --- a/src/wine-host/bridges/vst3.h +++ b/src/wine-host/bridges/vst3.h @@ -307,7 +307,7 @@ class Vst3Bridge : public HostBridge { */ template T do_mutual_recursion_or_handle_in_main_context(F f) { - std::packaged_task do_call(f); + std::packaged_task do_call(std::move(f)); std::future do_call_response = do_call.get_future(); // If the above function is currently being called from some thread,