From 5e74690e49350f9190d9501a17e4e5fd0cc1b841 Mon Sep 17 00:00:00 2001 From: chatlanin Date: Wed, 10 May 2023 22:05:41 +0300 Subject: [PATCH] fix thread as reference --- src/try_engine/event/app_event/event.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/try_engine/event/app_event/event.hpp b/src/try_engine/event/app_event/event.hpp index 4857903..de63065 100644 --- a/src/try_engine/event/app_event/event.hpp +++ b/src/try_engine/event/app_event/event.hpp @@ -21,7 +21,7 @@ namespace try_engine::app_event for (const auto layer : l_stack) { std::thread th { - [=]() { + [&]() { layer->on_event(type, value); } };