Refactor flat_static_buffer

This commit is contained in:
Richard Hodges authored and Vinnie Falco committed 2020-02-29 10:43:00 -08:00
1 parent 25c8fb4714
commit ea078cfcdb
3 files changed
+21 -10

No files matched your search

@@ -114,8 +114,9 @@ public:
/// The ConstBufferSequence used to represent the readable bytes.
using const_buffers_type = net::const_buffer;
/// The MutableBufferSequence used to represent the readable bytes.
#ifdef BOOST_BEAST_ALLOW_DEPRECATED
using mutable_data_type = net::mutable_buffer;
#endif
/// The MutableBufferSequence used to represent the writable bytes.
using mutable_buffers_type = net::mutable_buffer;
@@ -156,7 +157,7 @@ public:
}
/// Returns a mutable buffer sequence representing the readable bytes
mutable_data_type
mutable_buffers_type
data() noexcept
{
return {in_, dist(in_, out_)};