mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 23:04:35 +02:00
test::stream has deprecated lowest_layer for ssl
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
Version 242:
|
||||
|
||||
* test::stream has deprecated lowest_layer for ssl
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Version 241:
|
||||
|
||||
* Tidy up a doc code snippet
|
||||
|
@@ -32,6 +32,16 @@
|
||||
#include <mutex>
|
||||
#include <utility>
|
||||
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
namespace boost {
|
||||
namespace asio {
|
||||
namespace ssl {
|
||||
template<typename> class stream;
|
||||
} // ssl
|
||||
} // asio
|
||||
} // boost
|
||||
#endif
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace test {
|
||||
@@ -174,6 +184,27 @@ class stream
|
||||
std::unique_ptr<read_op_base>&& op,
|
||||
std::size_t buf_size);
|
||||
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
// boost::asio::ssl::stream needs these
|
||||
// DEPRECATED
|
||||
template<class>
|
||||
friend class boost::asio::ssl::stream;
|
||||
// DEPRECATED
|
||||
using lowest_layer_type = stream;
|
||||
// DEPRECATED
|
||||
lowest_layer_type&
|
||||
lowest_layer() noexcept
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
// DEPRECATED
|
||||
lowest_layer_type const&
|
||||
lowest_layer() const noexcept
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
|
||||
public:
|
||||
using buffer_type = flat_buffer;
|
||||
|
||||
|
Reference in New Issue
Block a user