mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 23:04:35 +02:00
Remove reset function from flat_static_buffer (API Change):
API Changes: The reset function has been removed from flat_static_buffer. Use the clear function instead. refs #1934
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
* Remove `reset` function from `flat_static_buffer` (API Change)
|
||||||
* Remove `mutable_data_type` from Dyanmic Buffers (API Change)
|
* Remove `mutable_data_type` from Dyanmic Buffers (API Change)
|
||||||
* Remove deprecated lowest_layer from test::stream
|
* Remove deprecated lowest_layer from test::stream
|
||||||
* Remove handler_pointer (API Change)
|
* Remove handler_pointer (API Change)
|
||||||
@@ -7,6 +8,9 @@
|
|||||||
|
|
||||||
API Changes:
|
API Changes:
|
||||||
|
|
||||||
|
* The `reset` function has been removed from `flat_static_buffer`. Use the
|
||||||
|
`clear` function instead.
|
||||||
|
|
||||||
* Code that depends on `mutable_data_type` should be refactored to use
|
* Code that depends on `mutable_data_type` should be refactored to use
|
||||||
`mutable_buffers_type`. Classes affected are:
|
`mutable_buffers_type`. Classes affected are:
|
||||||
- `buffers_adaptor`
|
- `buffers_adaptor`
|
||||||
|
@@ -92,23 +92,6 @@ public:
|
|||||||
void
|
void
|
||||||
clear() noexcept;
|
clear() noexcept;
|
||||||
|
|
||||||
#ifdef BOOST_BEAST_ALLOW_DEPRECATED
|
|
||||||
/// Change the number of readable and writable bytes to zero.
|
|
||||||
void
|
|
||||||
reset() noexcept
|
|
||||||
{
|
|
||||||
clear();
|
|
||||||
}
|
|
||||||
#elif ! BOOST_BEAST_DOXYGEN
|
|
||||||
template<std::size_t I = 0>
|
|
||||||
void
|
|
||||||
reset() noexcept
|
|
||||||
{
|
|
||||||
static_assert(I != 0,
|
|
||||||
BOOST_BEAST_DEPRECATION_STRING);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
|
|
||||||
/// The ConstBufferSequence used to represent the readable bytes.
|
/// The ConstBufferSequence used to represent the readable bytes.
|
||||||
|
Reference in New Issue
Block a user