C++20: Avoid implicit capture

This commit is contained in:
Albert S. 2021-10-25 18:09:46 +02:00
orang tua ad42c0f046
melakukan ed61003636
1 mengubah file dengan 1 tambahan dan 1 penghapusan

Melihat File

@ -36,7 +36,7 @@ bool CLIServer::detachServer(std::string socketpath)
exit(EXIT_FAILURE);
}
auto worker = [=]
auto worker = [this, s]
{
while(true)
{