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,