Skip to content

Commit

Permalink
fix: fix compilation with Boost 1.87.0
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
deniskovalchuk committed Dec 18, 2024
1 parent ad0c10d commit 717e6cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/ftp/detail/socket_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ class socket_base
}

private:
static std::pair<boost::asio::buffers_iterator<boost::asio::const_buffers_1>, bool>
match_eol(boost::asio::buffers_iterator<boost::asio::const_buffers_1> begin,
boost::asio::buffers_iterator<boost::asio::const_buffers_1> end)
static std::pair<boost::asio::buffers_iterator<boost::asio::const_buffer>, bool>
match_eol(boost::asio::buffers_iterator<boost::asio::const_buffer> begin,
boost::asio::buffers_iterator<boost::asio::const_buffer> end)
{
boost::asio::buffers_iterator<boost::asio::const_buffers_1> it = begin;
boost::asio::buffers_iterator<boost::asio::const_buffer> it = begin;

while (it != end)
{
Expand Down

0 comments on commit 717e6cb

Please sign in to comment.