workaround for std::packaged_task<void()> problem on MSVC
This commit is contained in:
		
							parent
							
								
									be5c3e41e1
								
							
						
					
					
						commit
						42d3ee9b94
					
				| @ -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)); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user