summaryrefslogtreecommitdiff
path: root/boost/beast/core/buffers_prefix.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/beast/core/buffers_prefix.hpp')
-rw-r--r--boost/beast/core/buffers_prefix.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/boost/beast/core/buffers_prefix.hpp b/boost/beast/core/buffers_prefix.hpp
index 858723fe7d..175610f171 100644
--- a/boost/beast/core/buffers_prefix.hpp
+++ b/boost/beast/core/buffers_prefix.hpp
@@ -39,6 +39,7 @@ class buffers_prefix_view
BufferSequence bs_;
std::size_t size_;
+ std::size_t remain_;
iter_type end_;
template<class Deduced>
@@ -46,6 +47,7 @@ class buffers_prefix_view
Deduced&& other, std::size_t dist)
: bs_(std::forward<Deduced>(other).bs_)
, size_(other.size_)
+ , remain_(other.remain_)
, end_(std::next(bs_.begin(), dist))
{
}