mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 06:44:39 +02:00
Fix buffered_read_stream async_read_some signature
This commit is contained in:
@@ -10,6 +10,7 @@ Version 126:
|
||||
* Fix executor type compilation
|
||||
* Add Travis tests with the default compilers
|
||||
* Update Boost.WinAPI usage to the new location and namespace.
|
||||
* Fix buffered_read_stream async_read_some signature
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@@ -288,7 +288,7 @@ public:
|
||||
*/
|
||||
template<class MutableBufferSequence, class ReadHandler>
|
||||
BOOST_ASIO_INITFN_RESULT_TYPE(
|
||||
ReadHandler, void(error_code))
|
||||
ReadHandler, void(error_code, std::size_t))
|
||||
async_read_some(MutableBufferSequence const& buffers,
|
||||
ReadHandler&& handler);
|
||||
|
||||
@@ -360,7 +360,7 @@ public:
|
||||
*/
|
||||
template<class ConstBufferSequence, class WriteHandler>
|
||||
BOOST_ASIO_INITFN_RESULT_TYPE(
|
||||
WriteHandler, void(error_code))
|
||||
WriteHandler, void(error_code, std::size_t))
|
||||
async_write_some(ConstBufferSequence const& buffers,
|
||||
WriteHandler&& handler);
|
||||
};
|
||||
|
@@ -144,11 +144,12 @@ buffered_read_stream(Args&&... args)
|
||||
|
||||
template<class Stream, class DynamicBuffer>
|
||||
template<class ConstBufferSequence, class WriteHandler>
|
||||
auto
|
||||
BOOST_ASIO_INITFN_RESULT_TYPE(
|
||||
WriteHandler, void(error_code, std::size_t))
|
||||
buffered_read_stream<Stream, DynamicBuffer>::
|
||||
async_write_some(ConstBufferSequence const& buffers,
|
||||
WriteHandler&& handler) ->
|
||||
BOOST_ASIO_INITFN_RESULT_TYPE(WriteHandler, void(error_code))
|
||||
async_write_some(
|
||||
ConstBufferSequence const& buffers,
|
||||
WriteHandler&& handler)
|
||||
{
|
||||
static_assert(is_async_write_stream<next_layer_type>::value,
|
||||
"AsyncWriteStream requirements not met");
|
||||
@@ -217,11 +218,12 @@ read_some(MutableBufferSequence const& buffers,
|
||||
|
||||
template<class Stream, class DynamicBuffer>
|
||||
template<class MutableBufferSequence, class ReadHandler>
|
||||
auto
|
||||
BOOST_ASIO_INITFN_RESULT_TYPE(
|
||||
ReadHandler, void(error_code, std::size_t))
|
||||
buffered_read_stream<Stream, DynamicBuffer>::
|
||||
async_read_some(MutableBufferSequence const& buffers,
|
||||
ReadHandler&& handler) ->
|
||||
BOOST_ASIO_INITFN_RESULT_TYPE(ReadHandler, void(error_code))
|
||||
async_read_some(
|
||||
MutableBufferSequence const& buffers,
|
||||
ReadHandler&& handler)
|
||||
{
|
||||
static_assert(is_async_read_stream<next_layer_type>::value,
|
||||
"AsyncReadStream requirements not met");
|
||||
|
Reference in New Issue
Block a user