summaryrefslogtreecommitdiff
path: root/boost/beast/core/impl/buffers_suffix.ipp
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:21:30 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:21:30 +0900
commitd6a306e745acfee00e81ccaf3324a2a03516db41 (patch)
tree145a26368608982f40ebb0f4836185c44abb9ae4 /boost/beast/core/impl/buffers_suffix.ipp
parent5ce2ccf2f23c6d3de4c79f216f57ca6f2a18ed16 (diff)
downloadboost-d6a306e745acfee00e81ccaf3324a2a03516db41.tar.gz
boost-d6a306e745acfee00e81ccaf3324a2a03516db41.tar.bz2
boost-d6a306e745acfee00e81ccaf3324a2a03516db41.zip
Imported Upstream version 1.69.0upstream/1.69.0
Diffstat (limited to 'boost/beast/core/impl/buffers_suffix.ipp')
-rw-r--r--boost/beast/core/impl/buffers_suffix.ipp15
1 files changed, 14 insertions, 1 deletions
diff --git a/boost/beast/core/impl/buffers_suffix.ipp b/boost/beast/core/impl/buffers_suffix.ipp
index 4385fe500d..62b5f4634e 100644
--- a/boost/beast/core/impl/buffers_suffix.ipp
+++ b/boost/beast/core/impl/buffers_suffix.ipp
@@ -54,7 +54,20 @@ public:
bool
operator==(const_iterator const& other) const
{
- return b_ == other.b_ && it_ == other.it_;
+ return
+ (b_ == nullptr) ?
+ (
+ other.b_ == nullptr ||
+ other.it_ == boost::asio::buffer_sequence_end(other.b_->bs_)
+ ):(
+ (other.b_ == nullptr) ?
+ (
+ it_ == boost::asio::buffer_sequence_end(b_->bs_)
+ ): (
+ b_ == other.b_ &&
+ it_ == other.it_
+ )
+ );
}
bool