forked from boostorg/beast
Pass references as pointers to async_initiate
This commit is contained in:
1 parent
ab9a4c66e0
commit
7953ac281f
18 files changed
+165
-162
No files matched your search
@@ -343,7 +343,7 @@ template<
|
||||
class CompletionToken>
|
||||
auto
|
||||
async_write(
|
||||
AsyncWriteStream& stream,
|
||||
AsyncWriteStream* stream, // references are passed as pointers
|
||||
ConstBufferSequence const& buffers,
|
||||
CompletionToken&& token) // a handler, or a special object.
|
||||
->
|
||||
@@ -379,9 +379,9 @@ async_write(
|
||||
return net::async_initiate<
|
||||
CompletionToken,
|
||||
void(error_code, std::size_t)>(
|
||||
run_async_write{}, // the "initiation" object.
|
||||
token, // must be first.
|
||||
stream, // additional captured arguments are
|
||||
run_async_write{}, // The "initiation" object.
|
||||
token, // Token must come before other arguments.
|
||||
&stream, // Additional captured arguments are
|
||||
buffers); // forwarded to the initiation object.
|
||||
|
||||
//]
|
||||
|
||||
Reference in new issue
Block a user