buffer_adaptors uses the correct begin function.

This commit is contained in:
Klemens
2022-10-04 13:54:58 +08:00
committed by Klemens Morgenstern
parent 9d680df683
commit 3869d472ec
2 changed files with 5 additions and 3 deletions

View File

@ -195,9 +195,9 @@ buffers_adaptor(
std::size_t nout,
std::size_t nend)
: bs_(other.bs_)
, begin_(std::next(bs_.begin(), nbegin))
, out_(std::next(bs_.begin(), nout))
, end_(std::next(bs_.begin(), nend))
, begin_(std::next(net::buffer_sequence_begin(bs_), nbegin))
, out_(std::next(net::buffer_sequence_begin(bs_), nout))
, end_(std::next(net::buffer_sequence_begin(bs_), nend))
, max_size_(other.max_size_)
, in_pos_(other.in_pos_)
, in_size_(other.in_size_)

View File

@ -24,6 +24,8 @@
namespace boost {
namespace beast {
template class buffers_adaptor<net::mutable_buffer>;
struct buffers_adaptor_test_hook
{
template<class MutableBufferSequence>