Subject: [Boost-bugs] [Boost C++ Libraries] #10898: Variadic constructor for ssl::stream so it can wrap streams whose constructors take n arguments
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-12-24 16:56:32
#10898: Variadic constructor for ssl::stream so it can wrap streams whose
constructors take n arguments
-----------------------------------------+----------------------------
Reporter: Joseph Southwell <joseph@â¦> | Owner: chris_kohlhoff
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.57.0 | Severity: Problem
Keywords: asio ssl c++11 |
-----------------------------------------+----------------------------
I have specific use case ( passing through a proxy ) where I need to wrap
an ssl stream in an ssl stream. This becomes possible if I change the
constructor for ssl stream as follows.
{{{
#!cpp
template <typename ...Arg>
stream(context& ctx, Arg&& ...arg)
: next_layer_(std::forward<Arg>(arg)...),
core_(ctx.native_handle(),
next_layer_.lowest_layer().get_io_service())
{
backwards_compatible_impl_.ssl = core_.engine_.native_handle();
}
}}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10898> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC