handler_ptr gives the strong exception guarantee (API Change):

* The handler_ptr constructor now provides the
  strong exception guarantee.

* The signature for managed objects constructed by
  `handler_ptr` receives a const reference to the handler.

Actions required:

* Change the constructor signature for state objects
  used with handler_ptr to receive a const reference to
  the handler.
This commit is contained in:
Damian Jarek authored and Vinnie Falco committed 2017-12-08 10:58:46 -08:00
1 parent e08132106e
commit 285965d82e
11 files changed
+81 -41

No files matched your search

@@ -45,7 +45,7 @@ class stream<NextLayer>::response_op
response_type res;
template<class Body, class Allocator, class Decorator>
data(Handler&, stream<NextLayer>& ws_, http::request<
data(Handler const&, stream<NextLayer>& ws_, http::request<
Body, http::basic_fields<Allocator>> const& req,
Decorator const& decorator)
: ws(ws_)
@@ -142,7 +142,7 @@ class stream<NextLayer>::accept_op
stream<NextLayer>& ws;
Decorator decorator;
http::request_parser<http::empty_body> p;
data(Handler&, stream<NextLayer>& ws_,
data(Handler const&, stream<NextLayer>& ws_,
Decorator const& decorator_)
: ws(ws_)
, decorator(decorator_)
+1 -1
View File
@@ -48,7 +48,7 @@ class stream<NextLayer>::close_op
bool cont = false;
state(
Handler&,
Handler const&,
stream<NextLayer>& ws_,
close_reason const& cr)
: ws(ws_)
@@ -47,7 +47,7 @@ class stream<NextLayer>::handshake_op
response_type res;
template<class Decorator>
data(Handler&, stream<NextLayer>& ws_,
data(Handler const&, stream<NextLayer>& ws_,
response_type* res_p_,
string_view host,
string_view target,
+1 -1
View File
@@ -44,7 +44,7 @@ class stream<NextLayer>::ping_op
token tok;
state(
Handler&,
Handler const&,
stream<NextLayer>& ws_,
detail::opcode op,
ping_data const& payload)