forked from boostorg/beast
Restyle async result constructions
This commit is contained in:
1 parent
1f52f4a791
commit
dbfb7718fc
15 files changed
+23
-22
No files matched your search
@@ -234,7 +234,7 @@ async_write(AsyncWriteStream& stream,
|
||||
static_assert(is_AsyncWriteStream<AsyncWriteStream>::value,
|
||||
"AsyncWriteStream requirements not met");
|
||||
beast::async_completion<WriteHandler,
|
||||
void(error_code)> completion(handler);
|
||||
void(error_code)> completion{handler};
|
||||
streambuf sb;
|
||||
detail::write_start_line(sb, msg);
|
||||
detail::write_fields(sb, msg.fields);
|
||||
@@ -728,7 +728,7 @@ async_write(AsyncWriteStream& stream,
|
||||
message<isRequest, Body, Fields>>::value,
|
||||
"Writer requirements not met");
|
||||
beast::async_completion<WriteHandler,
|
||||
void(error_code)> completion(handler);
|
||||
void(error_code)> completion{handler};
|
||||
detail::write_op<AsyncWriteStream, decltype(completion.handler),
|
||||
isRequest, Body, Fields>{completion.handler, stream, msg};
|
||||
return completion.result.get();
|
||||
|
||||
Reference in new issue
Block a user