summaryrefslogtreecommitdiff
path: root/boost/beast/core/static_buffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/beast/core/static_buffer.hpp')
-rw-r--r--boost/beast/core/static_buffer.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/boost/beast/core/static_buffer.hpp b/boost/beast/core/static_buffer.hpp
index 05496c4018..86f06b1efd 100644
--- a/boost/beast/core/static_buffer.hpp
+++ b/boost/beast/core/static_buffer.hpp
@@ -52,7 +52,7 @@ class static_buffer_base
public:
/// The type used to represent the input sequence as a list of buffers.
using const_buffers_type =
- std::array<boost::asio::mutable_buffer, 2>;
+ std::array<boost::asio::const_buffer, 2>;
/// The type used to represent the output sequence as a list of buffers.
using mutable_buffers_type =
@@ -94,6 +94,11 @@ public:
const_buffers_type
data() const;
+ /** Get a mutable list of buffers that represent the input sequence.
+ */
+ mutable_buffers_type
+ mutable_data();
+
/** Get a list of buffers that represent the output sequence, with the given size.
@param size The number of bytes to request.