From e9472c376a8f5a5607f6fd0a8fe4c6ed44160746 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Tue, 19 Nov 2024 18:19:59 -0500 Subject: [PATCH] Fix compilation with upcoming Boost 1.87.0 --- include/server/server.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/server/server.hpp b/include/server/server.hpp index 34b8982e67a..02b0dda050d 100644 --- a/include/server/server.hpp +++ b/include/server/server.hpp @@ -53,8 +53,7 @@ class Server const auto port_string = std::to_string(port); boost::asio::ip::tcp::resolver resolver(io_context); - boost::asio::ip::tcp::resolver::query query(address, port_string); - boost::asio::ip::tcp::endpoint endpoint = *resolver.resolve(query); + boost::asio::ip::tcp::endpoint endpoint = *resolver.resolve(address, port_string).begin(); acceptor.open(endpoint.protocol()); #ifdef SO_REUSEPORT