From 6a5a003a07850afda9681843978f1c5f46d04000 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Sun, 22 Mar 2026 18:18:30 +0100 Subject: [PATCH] asio::ip::{address::from_string -> make_address} Fix build for asio 1.36 `from_string` has been deprecated for at least 9 years (ref blame https://github.com/boostorg/asio/blame/b60e92b13ef68dfbb9af180d76eae41d22e19356/include/boost/asio/ip/address.hpp), and removed in https://github.com/boostorg/asio/commit/c0d1cfce7767599c4cf00df36f8017a1073339ae --- udp_driver/src/udp_socket.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/udp_driver/src/udp_socket.cpp b/udp_driver/src/udp_socket.cpp index 619c7be..1b12400 100644 --- a/udp_driver/src/udp_socket.cpp +++ b/udp_driver/src/udp_socket.cpp @@ -38,15 +38,15 @@ UdpSocket::UdpSocket( const uint16_t host_port) : m_ctx(ctx), m_udp_socket(ctx.ios()), - m_remote_endpoint(address::from_string(remote_ip), remote_port), - m_host_endpoint(address::from_string(host_ip), host_port) + m_remote_endpoint(asio::ip::make_address(remote_ip), remote_port), + m_host_endpoint(asio::ip::make_address(host_ip), host_port) { m_remote_endpoint = remote_ip.empty() ? udp::endpoint{udp::v4(), remote_port} : - udp::endpoint{address::from_string(remote_ip), remote_port}; + udp::endpoint{asio::ip::make_address(remote_ip), remote_port}; m_host_endpoint = host_ip.empty() ? udp::endpoint{udp::v4(), host_port} : - udp::endpoint{address::from_string(host_ip), host_port}; + udp::endpoint{asio::ip::make_address(host_ip), host_port}; m_recv_buffer.resize(m_recv_buffer_size); }