From 717e6cbd34b316b3b77ef37acd89455276cf21d6 Mon Sep 17 00:00:00 2001 From: Denis Kovalchuk Date: Thu, 19 Dec 2024 00:25:30 +0300 Subject: [PATCH] fix: fix compilation with Boost 1.87.0 Replace boost::asio::const_buffers_1 on boost::asio::const_buffer. boost::asio::const_buffers_1 was deprecated and removed in Boost 1.87.0. --- include/ftp/detail/socket_base.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ftp/detail/socket_base.hpp b/include/ftp/detail/socket_base.hpp index 719086b..04f7a94 100644 --- a/include/ftp/detail/socket_base.hpp +++ b/include/ftp/detail/socket_base.hpp @@ -104,11 +104,11 @@ class socket_base } private: - static std::pair, bool> - match_eol(boost::asio::buffers_iterator begin, - boost::asio::buffers_iterator end) + static std::pair, bool> + match_eol(boost::asio::buffers_iterator begin, + boost::asio::buffers_iterator end) { - boost::asio::buffers_iterator it = begin; + boost::asio::buffers_iterator it = begin; while (it != end) {