diff --git a/CHANGELOG.md b/CHANGELOG.md index bcaeefdd..80d6f7e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ Version 286: * Refactor multi_buffer * Refactor buffers_adapter * Refactor static_buffer +* Refactor flat_buffer API Changes: @@ -10,6 +11,7 @@ API Changes: * buffers_adaptor::mutable_data_type is deprecated. Use buffers_adaptor::mutable_buffers_type instead. * static_buffer::mutable_data_type is deprecated. Use static_buffer::mutable_buffers_type instead. * static_buffer_base::mutable_data_type is deprecated. Use static_buffer_base::mutable_buffers_type instead. +* flat_buffer::mutable_data_type is deprecated. Use flat_buffer::mutable_buffers_type instead. -------------------------------------------------------------------------------- diff --git a/include/boost/beast/core/flat_buffer.hpp b/include/boost/beast/core/flat_buffer.hpp index f9b7ba26..ec0f63ec 100644 --- a/include/boost/beast/core/flat_buffer.hpp +++ b/include/boost/beast/core/flat_buffer.hpp @@ -396,7 +396,6 @@ public: /// The ConstBufferSequence used to represent the readable bytes. using const_buffers_type = net::const_buffer; - /// The MutableBufferSequence used to represent the readable bytes. using mutable_data_type = net::mutable_buffer; /// The MutableBufferSequence used to represent the writable bytes. @@ -438,7 +437,7 @@ public: } /// Returns a mutable buffer sequence representing the readable bytes - mutable_data_type + mutable_buffers_type data() noexcept { return {in_, dist(in_, out_)};