From 131b340d75850a3b70d14ff95ef6188c7fad4050 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 22 Aug 2017 21:55:10 -0400 Subject: [PATCH] Dodges a lambda copy. --- Outputs/Speaker.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Outputs/Speaker.hpp b/Outputs/Speaker.hpp index a64082d42..85f7ecb8b 100644 --- a/Outputs/Speaker.hpp +++ b/Outputs/Speaker.hpp @@ -91,7 +91,7 @@ class Speaker { std::shared_ptr>> queued_functions = queued_functions_; queued_functions_.reset(); _queue->enqueue([queued_functions] { - for(auto function : *queued_functions) { + for(auto &function : *queued_functions) { function(); } });