Replace asynchronous helper macros with template aliases (API Change)

This commit is contained in:
Vinnie Falco committed 2017-07-20 08:12:16 -07:00
1 parent 043386aeb3
commit aa8a0a2a4b
20 files changed
+207 -189

No files matched your search

+4 -4
View File
@@ -121,8 +121,8 @@ write(SyncWriteStream& stream,
template<class AsyncWriteStream,
bool isRequest, class Fields,
class WriteHandler>
BEAST_INITFN_RESULT_TYPE(
WriteHandler, void(error_code))
async_return_type<
WriteHandler, void(error_code)>
async_write(AsyncWriteStream& stream,
header<isRequest, Fields> const& msg,
WriteHandler&& handler);
@@ -236,8 +236,8 @@ write(SyncWriteStream& stream,
template<class AsyncWriteStream,
bool isRequest, class Body, class Fields,
class WriteHandler>
BEAST_INITFN_RESULT_TYPE(
WriteHandler, void(error_code))
async_return_type<
WriteHandler, void(error_code)>
async_write(AsyncWriteStream& stream,
message<isRequest, Body, Fields> const& msg,
WriteHandler&& handler);