"this" must be explicit in lambda capture

This commit is contained in:
Dan Paulat 2023-04-17 18:29:37 -05:00
parent 31db9a4315
commit a3afd71f03
19 changed files with 132 additions and 129 deletions

View file

@ -332,7 +332,7 @@ void AlertLayerHandler::UpdateAlerts()
using namespace std::chrono;
alertUpdateTimer_.expires_after(15s);
alertUpdateTimer_.async_wait(
[=](const boost::system::error_code& e)
[this](const boost::system::error_code& e)
{
if (e == boost::asio::error::operation_aborted)
{