Restyle async result constructions

This commit is contained in:
Vinnie Falco committed 2017-02-07 19:59:03 -05:00
1 parent 572a0eb490
commit 264fd41342
15 files changed
+23 -22

No files matched your search

+1 -1
View File
@@ -289,7 +289,7 @@ async_parse(AsyncReadStream& stream,
static_assert(is_Parser<Parser>::value,
"Parser requirements not met");
beast::async_completion<ReadHandler,
void(error_code)> completion(handler);
void(error_code)> completion{handler};
detail::parse_op<AsyncReadStream, DynamicBuffer,
Parser, decltype(completion.handler)>{
completion.handler, stream, dynabuf, parser};