From 3c82717fed6a950dcd87ae26d234da2815a417fa Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 29 Mar 2019 17:31:18 -0700 Subject: [PATCH] test::stream has deprecated lowest_layer for ssl --- CHANGELOG.md | 6 ++++ .../boost/beast/_experimental/test/stream.hpp | 31 +++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f17b1f78..e0352e97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +Version 242: + +* test::stream has deprecated lowest_layer for ssl + +-------------------------------------------------------------------------------- + Version 241: * Tidy up a doc code snippet diff --git a/include/boost/beast/_experimental/test/stream.hpp b/include/boost/beast/_experimental/test/stream.hpp index ea4d53c5..181acec9 100644 --- a/include/boost/beast/_experimental/test/stream.hpp +++ b/include/boost/beast/_experimental/test/stream.hpp @@ -32,6 +32,16 @@ #include #include +#if ! BOOST_BEAST_DOXYGEN +namespace boost { +namespace asio { +namespace ssl { +template class stream; +} // ssl +} // asio +} // boost +#endif + namespace boost { namespace beast { namespace test { @@ -174,6 +184,27 @@ class stream std::unique_ptr&& op, std::size_t buf_size); +#if ! BOOST_BEAST_DOXYGEN + // boost::asio::ssl::stream needs these + // DEPRECATED + template + 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;