From 416cc4042203fa09ee1a37335ba214c39ea77c0b Mon Sep 17 00:00:00 2001 From: Richard Hodges Date: Thu, 23 Jan 2020 15:21:35 +0100 Subject: [PATCH] ostream_buffer satisfies preconditions of DynamicBuffer_v1::commit: close #1806 --- CHANGELOG.md | 4 ++++ include/boost/beast/core/detail/ostream.hpp | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d88b21c..7e416758 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +Version 283: + +* ostream_buffer satisfies preconditions of DynamicBuffer_v1::commit + Version 282: * Use superproject docca diff --git a/include/boost/beast/core/detail/ostream.hpp b/include/boost/beast/core/detail/ostream.hpp index 8785c2e6..062a82d7 100644 --- a/include/boost/beast/core/detail/ostream.hpp +++ b/include/boost/beast/core/detail/ostream.hpp @@ -66,6 +66,7 @@ public: ostream_buffer(DynamicBuffer& b) : b_(b) { + b_.prepare(0); } int_type