forked from boostorg/beast
Better handler_ptr (API Change):
fix #242 * Add public constructors * Add handler_ptr::empty() * Add handler_ptr::element_type * Remove make_handler_ptr free function * Compiler error if element_type is an array type * handler_ptr::get() returns nullptr if no object is owned
This commit is contained in:
@@ -59,9 +59,7 @@ public:
|
||||
explicit
|
||||
teardown_ssl_op(
|
||||
DeducedHandler&& h, stream_type& stream)
|
||||
: d_(make_handler_ptr<data, Handler>(
|
||||
std::forward<DeducedHandler>(
|
||||
h), stream))
|
||||
: d_(std::forward<DeducedHandler>(h), stream)
|
||||
{
|
||||
(*this)(error_code{}, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user