From b5cf3a4204007e7bc6b12ad48d16bd7dcbe1b2c8 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Fri, 15 Aug 2025 13:26:32 +0200 Subject: [PATCH] [#4049] Fixed compile --- src/lib/asiolink/tests/io_service_unittest.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/asiolink/tests/io_service_unittest.cc b/src/lib/asiolink/tests/io_service_unittest.cc index 596ced0e3a..a97041a3bb 100644 --- a/src/lib/asiolink/tests/io_service_unittest.cc +++ b/src/lib/asiolink/tests/io_service_unittest.cc @@ -11,6 +11,7 @@ #include #include +#include #include using namespace isc::asiolink; @@ -91,7 +92,7 @@ TEST(IOService, runOneForStopped) { // Call runOneFor() with runtime of 500ms in a thread. size_t cnt = 0; bool timed_out = false; - std::thread th([this, io_service, &timed_out, &cnt]() { + std::thread th([io_service, &timed_out, &cnt]() { cnt = io_service->runOneFor(500 * 1000, timed_out); });