forked from boostorg/beast
Update for Net-TS Asio (API Change):
fix #769 The following classes are removed: * handler_type * async_result * async_completion * is_dynamic_buffer * is_const_buffer_sequence * is_mutable_buffer_sequence * handler_alloc Actions Required: * Use BOOST_ASIO_HANDLER_TYPE instead of handler_type * Use BOOST_ASIO_INITFN_RESULT_TYPE instead of async_result * Use boost::asio::async_completion * Use boost::asio::is_dynamic_buffer * Use boost::asio::is_const_buffer_sequence * Use boost::asio::is_mutable_buffer_sequence * boost::asio::associated_allocator_t replaces handler_alloc
This commit is contained in:
1 parent
9dc9ca13b9
commit
3a28e999af
173 files changed
+3214
-4138
No files matched your search
@@ -80,7 +80,7 @@ public:
|
||||
|
||||
public:
|
||||
using const_buffers_type =
|
||||
boost::asio::const_buffers_1;
|
||||
boost::asio::const_buffer;
|
||||
|
||||
template<bool isRequest, class Fields>
|
||||
explicit
|
||||
@@ -172,13 +172,11 @@ public:
|
||||
}
|
||||
ec.assign(0, ec.category());
|
||||
CharT* dest = &body_[size];
|
||||
for(boost::asio::const_buffer b : buffers)
|
||||
for(auto b : beast::detail::buffers_range(buffers))
|
||||
{
|
||||
using boost::asio::buffer_cast;
|
||||
auto const len = boost::asio::buffer_size(b);
|
||||
Traits::copy(
|
||||
dest, buffer_cast<CharT const*>(b), len);
|
||||
dest += len;
|
||||
Traits::copy(dest, reinterpret_cast<
|
||||
CharT const*>(b.data()), b.size());
|
||||
dest += b.size();
|
||||
}
|
||||
return extra;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user