Remove mutable_data_type from Dyanmic Buffers (API Change):

API Changes:

* Code that depends on mutable_data_type should be refactored to use
  mutable_buffers_type. Classes affected are:
  - buffers_adaptor
  - flat_buffer
  - flat_static_buffer
  - multi_buffer
  - static_buffer

refs #1934
This commit is contained in:
Richard Hodges
2020-06-02 15:26:57 +02:00
parent 3fb693eda6
commit 4fbb0079c3
6 changed files with 9 additions and 19 deletions

View File

@@ -1,3 +1,4 @@
* Remove `mutable_data_type` from Dyanmic Buffers (API Change)
* Remove deprecated lowest_layer from test::stream
* Remove handler_pointer (API Change)
* Remove websocket::role_type (API Change)
@@ -6,6 +7,14 @@
API Changes:
* Code that depends on `mutable_data_type` should be refactored to use
`mutable_buffers_type`. Classes affected are:
- `buffers_adaptor`
- `flat_buffer`
- `flat_static_buffer`
- `multi_buffer`
- `static_buffer`
* handler_ptr has been removed. Users should use net::bind_handler and/or
bind_front_handler instead.

View File

@@ -112,10 +112,6 @@ public:
#else
using const_buffers_type = subrange<false>;
#ifdef BOOST_BEAST_ALLOW_DEPRECATED
using mutable_data_type = subrange<true>;
#endif
using mutable_buffers_type = subrange<true>;
#endif

View File

@@ -396,8 +396,6 @@ public:
/// The ConstBufferSequence used to represent the readable bytes.
using const_buffers_type = net::const_buffer;
using mutable_data_type = net::mutable_buffer;
/// The MutableBufferSequence used to represent the writable bytes.
using mutable_buffers_type = net::mutable_buffer;

View File

@@ -114,10 +114,6 @@ public:
/// The ConstBufferSequence used to represent the readable bytes.
using const_buffers_type = net::const_buffer;
#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;

View File

@@ -166,11 +166,6 @@ public:
using const_buffers_type = subrange<false>;
using mutable_buffers_type = subrange<true>;
#ifdef BOOST_BEAST_ALLOW_DEPRECATED
using mutable_data_type = subrange<true>;
#endif
#endif
/// The type of allocator used.

View File

@@ -99,10 +99,6 @@ public:
#else
using const_buffers_type = detail::buffers_pair<false>;
#ifdef BOOST_BEAST_ALLOW_DEPRECATED
using mutable_data_type = detail::buffers_pair<true>;
#endif
using mutable_buffers_type = detail::buffers_pair<true>;
#endif