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:
Richard Hodges
2020-06-02 16:05:04 +02:00
parent 4fbb0079c3
commit 92364b8db8
2 changed files with 4 additions and 17 deletions

View File

@@ -1,3 +1,4 @@
* Remove `reset` function from `flat_static_buffer` (API Change)
* Remove `mutable_data_type` from Dyanmic Buffers (API Change)
* Remove deprecated lowest_layer from test::stream
* Remove handler_pointer (API Change)
@@ -7,6 +8,9 @@
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
`mutable_buffers_type`. Classes affected are:
- `buffers_adaptor`

View File

@@ -92,23 +92,6 @@ public:
void
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.