From e6a75746adb65b19f9432a734e0f4e8f2a3b884a Mon Sep 17 00:00:00 2001 From: Jinhao Date: Tue, 21 Apr 2020 05:43:05 +0800 Subject: [PATCH] fix a syntax error for C++11 --- source/gui/animation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/gui/animation.cpp b/source/gui/animation.cpp index 797647f5..90565c7e 100644 --- a/source/gui/animation.cpp +++ b/source/gui/animation.cpp @@ -454,8 +454,10 @@ namespace nana thr->performance_parameter = 0.0; thr->fps = p->fps; thr->interval = 1000.0 / double(p->fps); - thr->thread = std::make_shared([thr=thr.get()]() + auto pthr = thr.get(); + thr->thread = std::make_shared([pthr]() { + auto thr = pthr; nana::system::timepiece tmpiece; while (true) {