From 5d3ac5e0303c1b1b7d0c100b7369e4b8276a15b7 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Wed, 10 Sep 2025 16:19:18 +0200 Subject: fixes the build --- run/run.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'run/run.cpp') diff --git a/run/run.cpp b/run/run.cpp index b85e001..756b30c 100644 --- a/run/run.cpp +++ b/run/run.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include @@ -24,7 +25,7 @@ void action_handler(boost::system::error_code const& error, size_t) { } - io_context.post([](){ + boost::asio::post(io_context, [](){ connection_socket.async_receive(boost::asio::buffer(&message_size, sizeof message_size), 0, action_handler); }); } @@ -53,7 +54,7 @@ void accept_handler(boost::system::error_code const& error) connection_socket.send(boost::asio::buffer(&message, sizeof message)); connection_socket.send(boost::asio::buffer(binary, binary.size())); - io_context.post([](){ + boost::asio::post(io_context, [](){ connection_socket.async_receive(boost::asio::buffer(&message_size, sizeof message_size), 0, action_handler); }); } -- cgit v1.2.3-70-g09d2