fix a syntax error for C++11

This commit is contained in:
Jinhao 2020-04-21 05:43:05 +08:00
parent 1e19322ad1
commit e6a75746ad

View File

@ -454,8 +454,10 @@ namespace nana
thr->performance_parameter = 0.0; thr->performance_parameter = 0.0;
thr->fps = p->fps; thr->fps = p->fps;
thr->interval = 1000.0 / double(p->fps); thr->interval = 1000.0 / double(p->fps);
thr->thread = std::make_shared<std::thread>([thr=thr.get()]() auto pthr = thr.get();
thr->thread = std::make_shared<std::thread>([pthr]()
{ {
auto thr = pthr;
nana::system::timepiece tmpiece; nana::system::timepiece tmpiece;
while (true) while (true)
{ {