workaround for std::packaged_task<void()> problem on MSVC

This commit is contained in:
alex85k 2014-06-05 21:02:33 +06:00
parent be5c3e41e1
commit 42d3ee9b94

View File

@ -142,7 +142,7 @@ int main(int argc, const char *argv[])
}
else
{
std::packaged_task<void()> server_task(std::bind(&Server::Run, routing_server));
std::packaged_task<int()> server_task([&]()->int{ routing_server->Run(); return 0; });
auto future = server_task.get_future();
std::thread server_thread(std::move(server_task));