From f1e5f90744ae5a089abb03f3c842e36a3ac1714d Mon Sep 17 00:00:00 2001 From: term-est Date: Tue, 23 Jun 2026 20:10:08 +0300 Subject: [PATCH] Incorrectly assuming operator-> exists --- include/boost/capy/read_until.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/boost/capy/read_until.hpp b/include/boost/capy/read_until.hpp index ab9965580..82c8cc02c 100644 --- a/include/boost/capy/read_until.hpp +++ b/include/boost/capy/read_until.hpp @@ -43,9 +43,12 @@ linearize_buffers(ConstBufferSequence auto const& data) linear.reserve(buffer_size(data)); auto const end_ = end(data); for(auto it = begin(data); it != end_; ++it) + { + const_buffer b = *it; linear.append( - static_cast(it->data()), - it->size()); + static_cast(b.data()), + b.size()); + } return linear; } // LCOV_EXCL_LINE gcov brace artifact (linearize_buffers is exercised)