Switched to C++20

This commit is contained in:
emeric
2024-02-01 22:34:36 +01:00
parent 82be2e1a41
commit 6cfa4e9de6
26 changed files with 365 additions and 378 deletions
@@ -139,7 +139,7 @@ namespace Scanner
void ScannerService::requestImmediateScan(bool force)
{
abortScan();
_ioService.post([=]()
_ioService.post([this, force]
{
if (_abortScan)
return;
@@ -156,7 +156,7 @@ namespace Scanner
void ScannerService::requestReload()
{
abortScan();
_ioService.post([=]()
_ioService.post([this]()
{
if (_abortScan)
return;
@@ -234,7 +234,7 @@ namespace Scanner
void ScannerService::scheduleScan(bool force, const Wt::WDateTime& dateTime)
{
auto cb{ [=](boost::system::error_code ec)
auto cb{ [this, force](boost::system::error_code ec)
{
if (ec)
return;