diff options
Diffstat (limited to 'boost/beast/core/impl/buffers_suffix.ipp')
-rw-r--r-- | boost/beast/core/impl/buffers_suffix.ipp | 15 |
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 |