test::stream has deprecated lowest_layer for ssl

This commit is contained in:
Vinnie Falco
2019-03-29 17:31:18 -07:00
parent b39a297b41
commit 3c82717fed
2 changed files with 37 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
Version 242:
* test::stream has deprecated lowest_layer for ssl
--------------------------------------------------------------------------------
Version 241:
* Tidy up a doc code snippet

View File

@@ -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;