]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4049] Fixed compile
authorFrancis Dupont <fdupont@isc.org>
Fri, 15 Aug 2025 11:26:32 +0000 (13:26 +0200)
committerThomas Markwalder <tmark@isc.org>
Fri, 15 Aug 2025 13:10:54 +0000 (13:10 +0000)
src/lib/asiolink/tests/io_service_unittest.cc

index 596ced0e3a94609492609329499edff3d1b67d0b..a97041a3bb2b6471d8ce66cb3f3346fdb8b7c0c9 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <gtest/gtest.h>
 #include <functional>
+#include <thread>
 #include <vector>
 
 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);
     });