Fix compilation errors with msvc /std:c++latest

fixes #1916
fixes #1925
This commit is contained in:
Richard Hodges
2020-04-30 13:45:04 +02:00
parent fda558e034
commit 638e2d1244
21 changed files with 55 additions and 54 deletions

View File

@@ -1,3 +1,4 @@
* Fix compile errors on Visual Studio with /std:c++latest
* Fix standalone compilation error with std::string_view * Fix standalone compilation error with std::string_view
* OpenSSL 1.0.2 or later is required * OpenSSL 1.0.2 or later is required
* Fix c++20 deprecation warning in span_body * Fix c++20 deprecation warning in span_body

View File

@@ -259,7 +259,7 @@ read_some(MutableBufferSequence const& buffers, error_code& ec)
template<class NextLayer> template<class NextLayer>
template< template<
class MutableBufferSequence, class MutableBufferSequence,
class ReadHandler> BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
BOOST_BEAST_ASYNC_RESULT2(ReadHandler) BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
icy_stream<NextLayer>:: icy_stream<NextLayer>::
async_read_some( async_read_some(
@@ -311,7 +311,7 @@ write_some(MutableBufferSequence const& buffers, error_code& ec)
template<class NextLayer> template<class NextLayer>
template< template<
class MutableBufferSequence, class MutableBufferSequence,
class WriteHandler> BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
icy_stream<NextLayer>:: icy_stream<NextLayer>::
async_write_some( async_write_some(

View File

@@ -306,7 +306,7 @@ read_some(MutableBufferSequence const& buffers,
return 0; return 0;
} }
template<class MutableBufferSequence, class ReadHandler> template<class MutableBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
BOOST_BEAST_ASYNC_RESULT2(ReadHandler) BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
stream:: stream::
async_read_some( async_read_some(
@@ -386,7 +386,7 @@ write_some(
return n; return n;
} }
template<class ConstBufferSequence, class WriteHandler> template<class ConstBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
stream:: stream::
async_write_some( async_write_some(

View File

@@ -214,7 +214,7 @@ template<
class AsyncReadStream, class AsyncReadStream,
class DynamicBuffer, class DynamicBuffer,
class CompletionCondition, class CompletionCondition,
class ReadHandler, BOOST_BEAST_ASYNC_TPARAM2 ReadHandler,
class> class>
BOOST_BEAST_ASYNC_RESULT2(ReadHandler) BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
async_read( async_read(

View File

@@ -219,7 +219,7 @@ template<
class AsyncReadStream, class AsyncReadStream,
class DynamicBuffer, class DynamicBuffer,
class CompletionCondition, class CompletionCondition,
class ReadHandler BOOST_BEAST_ASYNC_TPARAM2 ReadHandler
#if ! BOOST_BEAST_DOXYGEN #if ! BOOST_BEAST_DOXYGEN
, class = typename std::enable_if< , class = typename std::enable_if<
is_async_read_stream<AsyncReadStream>::value && is_async_read_stream<AsyncReadStream>::value &&

View File

@@ -776,7 +776,7 @@ close()
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
template<class Protocol, class Executor, class RatePolicy> template<class Protocol, class Executor, class RatePolicy>
template<class ConnectHandler> template<BOOST_BEAST_ASYNC_TPARAM1 ConnectHandler>
BOOST_BEAST_ASYNC_RESULT1(ConnectHandler) BOOST_BEAST_ASYNC_RESULT1(ConnectHandler)
basic_stream<Protocol, Executor, RatePolicy>:: basic_stream<Protocol, Executor, RatePolicy>::
async_connect( async_connect(
@@ -795,7 +795,7 @@ async_connect(
template<class Protocol, class Executor, class RatePolicy> template<class Protocol, class Executor, class RatePolicy>
template< template<
class EndpointSequence, class EndpointSequence,
class RangeConnectHandler, BOOST_ASIO_COMPLETION_TOKEN_FOR(void(error_code, typename Protocol::endpoint)) RangeConnectHandler,
class> class>
BOOST_ASIO_INITFN_RESULT_TYPE(RangeConnectHandler,void(error_code, typename Protocol::endpoint)) BOOST_ASIO_INITFN_RESULT_TYPE(RangeConnectHandler,void(error_code, typename Protocol::endpoint))
basic_stream<Protocol, Executor, RatePolicy>:: basic_stream<Protocol, Executor, RatePolicy>::
@@ -817,7 +817,7 @@ template<class Protocol, class Executor, class RatePolicy>
template< template<
class EndpointSequence, class EndpointSequence,
class ConnectCondition, class ConnectCondition,
class RangeConnectHandler, BOOST_ASIO_COMPLETION_TOKEN_FOR(void(error_code, typename Protocol::endpoint)) RangeConnectHandler,
class> class>
BOOST_ASIO_INITFN_RESULT_TYPE(RangeConnectHandler,void (error_code, typename Protocol::endpoint)) BOOST_ASIO_INITFN_RESULT_TYPE(RangeConnectHandler,void (error_code, typename Protocol::endpoint))
basic_stream<Protocol, Executor, RatePolicy>:: basic_stream<Protocol, Executor, RatePolicy>::
@@ -839,7 +839,7 @@ async_connect(
template<class Protocol, class Executor, class RatePolicy> template<class Protocol, class Executor, class RatePolicy>
template< template<
class Iterator, class Iterator,
class IteratorConnectHandler> BOOST_ASIO_COMPLETION_TOKEN_FOR(void(error_code, Iterator)) IteratorConnectHandler>
BOOST_ASIO_INITFN_RESULT_TYPE(IteratorConnectHandler,void (error_code, Iterator)) BOOST_ASIO_INITFN_RESULT_TYPE(IteratorConnectHandler,void (error_code, Iterator))
basic_stream<Protocol, Executor, RatePolicy>:: basic_stream<Protocol, Executor, RatePolicy>::
async_connect( async_connect(
@@ -860,7 +860,7 @@ template<class Protocol, class Executor, class RatePolicy>
template< template<
class Iterator, class Iterator,
class ConnectCondition, class ConnectCondition,
class IteratorConnectHandler> BOOST_ASIO_COMPLETION_TOKEN_FOR(void(error_code, Iterator)) IteratorConnectHandler>
BOOST_ASIO_INITFN_RESULT_TYPE(IteratorConnectHandler,void (error_code, Iterator)) BOOST_ASIO_INITFN_RESULT_TYPE(IteratorConnectHandler,void (error_code, Iterator))
basic_stream<Protocol, Executor, RatePolicy>:: basic_stream<Protocol, Executor, RatePolicy>::
async_connect( async_connect(
@@ -881,7 +881,7 @@ async_connect(
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
template<class Protocol, class Executor, class RatePolicy> template<class Protocol, class Executor, class RatePolicy>
template<class MutableBufferSequence, class ReadHandler> template<class MutableBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
BOOST_BEAST_ASYNC_RESULT2(ReadHandler) BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
basic_stream<Protocol, Executor, RatePolicy>:: basic_stream<Protocol, Executor, RatePolicy>::
async_read_some( async_read_some(
@@ -901,7 +901,7 @@ async_read_some(
} }
template<class Protocol, class Executor, class RatePolicy> template<class Protocol, class Executor, class RatePolicy>
template<class ConstBufferSequence, class WriteHandler> template<class ConstBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
basic_stream<Protocol, Executor, RatePolicy>:: basic_stream<Protocol, Executor, RatePolicy>::
async_write_some( async_write_some(

View File

@@ -141,7 +141,7 @@ buffered_read_stream(Args&&... args)
} }
template<class Stream, class DynamicBuffer> template<class Stream, class DynamicBuffer>
template<class ConstBufferSequence, class WriteHandler> template<class ConstBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
buffered_read_stream<Stream, DynamicBuffer>:: buffered_read_stream<Stream, DynamicBuffer>::
async_write_some( async_write_some(
@@ -212,7 +212,7 @@ read_some(MutableBufferSequence const& buffers,
} }
template<class Stream, class DynamicBuffer> template<class Stream, class DynamicBuffer>
template<class MutableBufferSequence, class ReadHandler> template<class MutableBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
BOOST_BEAST_ASYNC_RESULT2(ReadHandler) BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
buffered_read_stream<Stream, DynamicBuffer>:: buffered_read_stream<Stream, DynamicBuffer>::
async_read_some( async_read_some(

View File

@@ -144,7 +144,7 @@ read_some(MutableBufferSequence const& buffers, error_code& ec)
template<class NextLayer> template<class NextLayer>
template< template<
class MutableBufferSequence, class MutableBufferSequence,
class ReadHandler> BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
BOOST_BEAST_ASYNC_RESULT2(ReadHandler) BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
flat_stream<NextLayer>:: flat_stream<NextLayer>::
async_read_some( async_read_some(
@@ -225,7 +225,7 @@ write_some(ConstBufferSequence const& buffers, error_code& ec)
template<class NextLayer> template<class NextLayer>
template< template<
class ConstBufferSequence, class ConstBufferSequence,
class WriteHandler> BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
flat_stream<NextLayer>:: flat_stream<NextLayer>::
async_write_some( async_write_some(

View File

@@ -597,7 +597,7 @@ write_some(
template< template<
class Protocol, class Executor, class Protocol, class Executor,
bool isRequest, class Fields, bool isRequest, class Fields,
class WriteHandler> BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
async_write_some( async_write_some(
net::basic_stream_socket< net::basic_stream_socket<

View File

@@ -304,7 +304,7 @@ template<
class AsyncReadStream, class AsyncReadStream,
class DynamicBuffer, class DynamicBuffer,
bool isRequest, bool isRequest,
class ReadHandler> BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
BOOST_BEAST_ASYNC_RESULT2(ReadHandler) BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
async_read_some( async_read_some(
AsyncReadStream& stream, AsyncReadStream& stream,
@@ -373,7 +373,7 @@ template<
class AsyncReadStream, class AsyncReadStream,
class DynamicBuffer, class DynamicBuffer,
bool isRequest, bool isRequest,
class ReadHandler> BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
BOOST_BEAST_ASYNC_RESULT2(ReadHandler) BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
async_read_header( async_read_header(
AsyncReadStream& stream, AsyncReadStream& stream,
@@ -443,7 +443,7 @@ template<
class AsyncReadStream, class AsyncReadStream,
class DynamicBuffer, class DynamicBuffer,
bool isRequest, bool isRequest,
class ReadHandler> BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
BOOST_BEAST_ASYNC_RESULT2(ReadHandler) BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
async_read( async_read(
AsyncReadStream& stream, AsyncReadStream& stream,
@@ -531,7 +531,7 @@ template<
class AsyncReadStream, class AsyncReadStream,
class DynamicBuffer, class DynamicBuffer,
bool isRequest, class Body, class Allocator, bool isRequest, class Body, class Allocator,
class ReadHandler> BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
BOOST_BEAST_ASYNC_RESULT2(ReadHandler) BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
async_read( async_read(
AsyncReadStream& stream, AsyncReadStream& stream,

View File

@@ -463,7 +463,7 @@ write_some_impl(
template< template<
class AsyncWriteStream, class AsyncWriteStream,
bool isRequest, class Body, class Fields, bool isRequest, class Body, class Fields,
class WriteHandler> BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
async_write_some_impl( async_write_some_impl(
AsyncWriteStream& stream, AsyncWriteStream& stream,
@@ -526,7 +526,7 @@ write_some(
template< template<
class AsyncWriteStream, class AsyncWriteStream,
bool isRequest, class Body, class Fields, bool isRequest, class Body, class Fields,
class WriteHandler> BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
async_write_some( async_write_some(
AsyncWriteStream& stream, AsyncWriteStream& stream,
@@ -608,7 +608,7 @@ write_header(
template< template<
class AsyncWriteStream, class AsyncWriteStream,
bool isRequest, class Body, class Fields, bool isRequest, class Body, class Fields,
class WriteHandler> BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
async_write_header( async_write_header(
AsyncWriteStream& stream, AsyncWriteStream& stream,
@@ -681,7 +681,7 @@ write(
template< template<
class AsyncWriteStream, class AsyncWriteStream,
bool isRequest, class Body, class Fields, bool isRequest, class Body, class Fields,
class WriteHandler> BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
async_write( async_write(
AsyncWriteStream& stream, AsyncWriteStream& stream,
@@ -801,7 +801,7 @@ write(
template< template<
class AsyncWriteStream, class AsyncWriteStream,
bool isRequest, class Body, class Fields, bool isRequest, class Body, class Fields,
class WriteHandler> BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
async_write( async_write(
AsyncWriteStream& stream, AsyncWriteStream& stream,
@@ -830,7 +830,7 @@ async_write(
template< template<
class AsyncWriteStream, class AsyncWriteStream,
bool isRequest, class Body, class Fields, bool isRequest, class Body, class Fields,
class WriteHandler> BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
async_write( async_write(
AsyncWriteStream& stream, AsyncWriteStream& stream,

View File

@@ -555,7 +555,7 @@ public:
need to ensure that all data is written before the asynchronous operation need to ensure that all data is written before the asynchronous operation
completes. completes.
*/ */
template<class ConstBufferSequence, class WriteHandler> template<class ConstBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_ASIO_INITFN_RESULT_TYPE(WriteHandler, void(boost::system::error_code, std::size_t)) BOOST_ASIO_INITFN_RESULT_TYPE(WriteHandler, void(boost::system::error_code, std::size_t))
async_write_some(ConstBufferSequence const& buffers, async_write_some(ConstBufferSequence const& buffers,
BOOST_ASIO_MOVE_ARG(WriteHandler) handler) BOOST_ASIO_MOVE_ARG(WriteHandler) handler)
@@ -636,7 +636,7 @@ public:
if you need to ensure that the requested amount of data is read before if you need to ensure that the requested amount of data is read before
the asynchronous operation completes. the asynchronous operation completes.
*/ */
template<class MutableBufferSequence, class ReadHandler> template<class MutableBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
BOOST_ASIO_INITFN_RESULT_TYPE(ReadHandler, void(boost::system::error_code, std::size_t)) BOOST_ASIO_INITFN_RESULT_TYPE(ReadHandler, void(boost::system::error_code, std::size_t))
async_read_some(MutableBufferSequence const& buffers, async_read_some(MutableBufferSequence const& buffers,
BOOST_ASIO_MOVE_ARG(ReadHandler) handler) BOOST_ASIO_MOVE_ARG(ReadHandler) handler)

View File

@@ -542,7 +542,7 @@ accept(
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template< template<
class AcceptHandler> BOOST_BEAST_ASYNC_TPARAM1 AcceptHandler>
BOOST_BEAST_ASYNC_RESULT1(AcceptHandler) BOOST_BEAST_ASYNC_RESULT1(AcceptHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_accept( async_accept(
@@ -564,7 +564,7 @@ async_accept(
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template< template<
class ResponseDecorator, class ResponseDecorator,
class AcceptHandler> BOOST_BEAST_ASYNC_TPARAM1 AcceptHandler>
BOOST_BEAST_ASYNC_RESULT1(AcceptHandler) BOOST_BEAST_ASYNC_RESULT1(AcceptHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_accept_ex( async_accept_ex(
@@ -590,7 +590,7 @@ async_accept_ex(
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template< template<
class ConstBufferSequence, class ConstBufferSequence,
class AcceptHandler> BOOST_BEAST_ASYNC_TPARAM1 AcceptHandler>
BOOST_BEAST_ASYNC_RESULT1(AcceptHandler) BOOST_BEAST_ASYNC_RESULT1(AcceptHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_accept( async_accept(
@@ -621,7 +621,7 @@ template<class NextLayer, bool deflateSupported>
template< template<
class ConstBufferSequence, class ConstBufferSequence,
class ResponseDecorator, class ResponseDecorator,
class AcceptHandler> BOOST_BEAST_ASYNC_TPARAM1 AcceptHandler>
BOOST_BEAST_ASYNC_RESULT1(AcceptHandler) BOOST_BEAST_ASYNC_RESULT1(AcceptHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_accept_ex( async_accept_ex(
@@ -654,7 +654,7 @@ async_accept_ex(
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template< template<
class Body, class Allocator, class Body, class Allocator,
class AcceptHandler> BOOST_BEAST_ASYNC_TPARAM1 AcceptHandler>
BOOST_BEAST_ASYNC_RESULT1(AcceptHandler) BOOST_BEAST_ASYNC_RESULT1(AcceptHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_accept( async_accept(
@@ -678,7 +678,7 @@ template<class NextLayer, bool deflateSupported>
template< template<
class Body, class Allocator, class Body, class Allocator,
class ResponseDecorator, class ResponseDecorator,
class AcceptHandler> BOOST_BEAST_ASYNC_TPARAM1 AcceptHandler>
BOOST_BEAST_ASYNC_RESULT1(AcceptHandler) BOOST_BEAST_ASYNC_RESULT1(AcceptHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_accept_ex( async_accept_ex(

View File

@@ -382,7 +382,7 @@ close(close_reason const& cr, error_code& ec)
} }
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template<class CloseHandler> template<BOOST_BEAST_ASYNC_TPARAM1 CloseHandler>
BOOST_BEAST_ASYNC_RESULT1(CloseHandler) BOOST_BEAST_ASYNC_RESULT1(CloseHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_close(close_reason const& cr, CloseHandler&& handler) async_close(close_reason const& cr, CloseHandler&& handler)

View File

@@ -268,7 +268,7 @@ do_handshake(
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template<class HandshakeHandler> template<BOOST_BEAST_ASYNC_TPARAM1 HandshakeHandler>
BOOST_BEAST_ASYNC_RESULT1(HandshakeHandler) BOOST_BEAST_ASYNC_RESULT1(HandshakeHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_handshake( async_handshake(
@@ -293,7 +293,7 @@ async_handshake(
} }
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template<class HandshakeHandler> template<BOOST_BEAST_ASYNC_TPARAM1 HandshakeHandler>
BOOST_BEAST_ASYNC_RESULT1(HandshakeHandler) BOOST_BEAST_ASYNC_RESULT1(HandshakeHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_handshake( async_handshake(

View File

@@ -288,7 +288,7 @@ pong(ping_data const& payload, error_code& ec)
} }
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template<class WriteHandler> template<BOOST_BEAST_ASYNC_TPARAM1 WriteHandler>
BOOST_BEAST_ASYNC_RESULT1(WriteHandler) BOOST_BEAST_ASYNC_RESULT1(WriteHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_ping(ping_data const& payload, WriteHandler&& handler) async_ping(ping_data const& payload, WriteHandler&& handler)
@@ -306,7 +306,7 @@ async_ping(ping_data const& payload, WriteHandler&& handler)
} }
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template<class WriteHandler> template<BOOST_BEAST_ASYNC_TPARAM1 WriteHandler>
BOOST_BEAST_ASYNC_RESULT1(WriteHandler) BOOST_BEAST_ASYNC_RESULT1(WriteHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_pong(ping_data const& payload, WriteHandler&& handler) async_pong(ping_data const& payload, WriteHandler&& handler)

View File

@@ -804,7 +804,7 @@ read(DynamicBuffer& buffer, error_code& ec)
} }
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template<class DynamicBuffer, class ReadHandler> template<class DynamicBuffer, BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
BOOST_BEAST_ASYNC_RESULT2(ReadHandler) BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_read(DynamicBuffer& buffer, ReadHandler&& handler) async_read(DynamicBuffer& buffer, ReadHandler&& handler)
@@ -878,7 +878,7 @@ read_some(
} }
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template<class DynamicBuffer, class ReadHandler> template<class DynamicBuffer, BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
BOOST_BEAST_ASYNC_RESULT2(ReadHandler) BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_read_some( async_read_some(
@@ -1263,7 +1263,7 @@ loop:
} }
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template<class MutableBufferSequence, class ReadHandler> template<class MutableBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
BOOST_BEAST_ASYNC_RESULT2(ReadHandler) BOOST_BEAST_ASYNC_RESULT2(ReadHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_read_some( async_read_some(

View File

@@ -700,7 +700,7 @@ write_some(bool fin,
} }
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template<class ConstBufferSequence, class WriteHandler> template<class ConstBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_write_some(bool fin, async_write_some(bool fin,
@@ -756,7 +756,7 @@ write(ConstBufferSequence const& buffers, error_code& ec)
} }
template<class NextLayer, bool deflateSupported> template<class NextLayer, bool deflateSupported>
template<class ConstBufferSequence, class WriteHandler> template<class ConstBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
BOOST_BEAST_ASYNC_RESULT2(WriteHandler) BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
stream<NextLayer, deflateSupported>:: stream<NextLayer, deflateSupported>::
async_write( async_write(

View File

@@ -2634,7 +2634,7 @@ public:
template< template<
class ResponseDecorator, class ResponseDecorator,
class AcceptHandler> BOOST_BEAST_ASYNC_TPARAM1 AcceptHandler>
BOOST_BEAST_ASYNC_RESULT1(AcceptHandler) BOOST_BEAST_ASYNC_RESULT1(AcceptHandler)
async_accept_ex( async_accept_ex(
ResponseDecorator const& decorator, ResponseDecorator const& decorator,
@@ -2643,7 +2643,7 @@ public:
template< template<
class ConstBufferSequence, class ConstBufferSequence,
class ResponseDecorator, class ResponseDecorator,
class AcceptHandler> BOOST_BEAST_ASYNC_TPARAM1 AcceptHandler>
BOOST_BEAST_ASYNC_RESULT1(AcceptHandler) BOOST_BEAST_ASYNC_RESULT1(AcceptHandler)
async_accept_ex( async_accept_ex(
ConstBufferSequence const& buffers, ConstBufferSequence const& buffers,
@@ -2656,7 +2656,7 @@ public:
template< template<
class Body, class Allocator, class Body, class Allocator,
class ResponseDecorator, class ResponseDecorator,
class AcceptHandler> BOOST_BEAST_ASYNC_TPARAM1 AcceptHandler>
BOOST_BEAST_ASYNC_RESULT1(AcceptHandler) BOOST_BEAST_ASYNC_RESULT1(AcceptHandler)
async_accept_ex( async_accept_ex(
http::request<Body, http::request<Body,

View File

@@ -585,7 +585,7 @@ public:
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
// Asynchronously read into a buffer until the buffer is full, or an error occurs // Asynchronously read into a buffer until the buffer is full, or an error occurs
template<class AsyncReadStream, class ReadHandler> template<class AsyncReadStream, BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
typename net::async_result<ReadHandler, void(error_code, std::size_t)>::return_type typename net::async_result<ReadHandler, void(error_code, std::size_t)>::return_type
async_read(AsyncReadStream& stream, net::mutable_buffer buffer, ReadHandler&& handler) async_read(AsyncReadStream& stream, net::mutable_buffer buffer, ReadHandler&& handler)
{ {

View File

@@ -214,14 +214,14 @@ public:
struct async_read_stream struct async_read_stream
{ {
net::io_context::executor_type get_executor() noexcept; net::io_context::executor_type get_executor() noexcept;
template<class MutableBufferSequence, class ReadHandler> template<class MutableBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
void async_read_some(MutableBufferSequence const&, ReadHandler&&); void async_read_some(MutableBufferSequence const&, ReadHandler&&);
}; };
struct async_write_stream struct async_write_stream
{ {
net::io_context::executor_type get_executor() noexcept; net::io_context::executor_type get_executor() noexcept;
template<class ConstBufferSequence, class WriteHandler> template<class ConstBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
void async_write_some(ConstBufferSequence const&, WriteHandler&&); void async_write_some(ConstBufferSequence const&, WriteHandler&&);
}; };
@@ -232,9 +232,9 @@ public:
struct async_stream : async_read_stream, async_write_stream struct async_stream : async_read_stream, async_write_stream
{ {
net::io_context::executor_type get_executor() noexcept; net::io_context::executor_type get_executor() noexcept;
template<class MutableBufferSequence, class ReadHandler> template<class MutableBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 ReadHandler>
void async_read_some(MutableBufferSequence const&, ReadHandler&&); void async_read_some(MutableBufferSequence const&, ReadHandler&&);
template<class ConstBufferSequence, class WriteHandler> template<class ConstBufferSequence, BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
void async_write_some(ConstBufferSequence const&, WriteHandler&&); void async_write_some(ConstBufferSequence const&, WriteHandler&&);
}; };