From ed610036363c68c0e5435a1783408f1ab943ad72 Mon Sep 17 00:00:00 2001 From: Albert S Date: Mon, 25 Oct 2021 18:09:46 +0200 Subject: [PATCH] C++20: Avoid implicit capture --- cliserver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cliserver.cpp b/cliserver.cpp index 2ba76d8..1641dfb 100644 --- a/cliserver.cpp +++ b/cliserver.cpp @@ -36,7 +36,7 @@ bool CLIServer::detachServer(std::string socketpath) exit(EXIT_FAILURE); } - auto worker = [=] + auto worker = [this, s] { while(true) {