diff --git a/CHANGELOG.md b/CHANGELOG.md index 9686068f..913e8166 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ Version 51 * Fix operator<< for header * Tidy up file_body +* Fix file_body::get() not setting the more flag correctly API Changes: diff --git a/examples/file_body.hpp b/examples/file_body.hpp index 860513ee..6b9f96cd 100644 --- a/examples/file_body.hpp +++ b/examples/file_body.hpp @@ -88,7 +88,7 @@ struct file_body } BOOST_ASSERT(nread != 0); offset_ += nread; - return {{const_buffers_type{buf_, nread}, offset_ >= size_}}; + return {{const_buffers_type{buf_, nread}, offset_ < size_}}; } }; };