If you use VS 2017 the server part will compile well, but in the client you would need to change
thread my_thread(process_client, client);
to
thread my_thread(process_client, ref(client));