summaryrefslogtreecommitdiff
path: root/boost/beast/core/impl/buffers_prefix.ipp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/beast/core/impl/buffers_prefix.ipp')
-rw-r--r--boost/beast/core/impl/buffers_prefix.ipp17
1 files changed, 16 insertions, 1 deletions
diff --git a/boost/beast/core/impl/buffers_prefix.ipp b/boost/beast/core/impl/buffers_prefix.ipp
index 783cf19c85..c595455d60 100644
--- a/boost/beast/core/impl/buffers_prefix.ipp
+++ b/boost/beast/core/impl/buffers_prefix.ipp
@@ -73,7 +73,20 @@ public:
bool
operator==(const_iterator const& other) const
{
- return b_ == other.b_ && it_ == other.it_;
+ return
+ (b_ == nullptr) ?
+ (
+ other.b_ == nullptr ||
+ other.it_ == other.b_->end_
+ ):(
+ (other.b_ == nullptr) ?
+ (
+ it_ == b_->end_
+ ): (
+ b_ == other.b_ &&
+ it_ == other.it_
+ )
+ );
}
bool
@@ -139,6 +152,8 @@ private:
}
};
+//------------------------------------------------------------------------------
+
template<class BufferSequence>
void
buffers_prefix_view<BufferSequence>::