Support boost 1.68

This commit is contained in:
seelabs
2018-08-09 09:16:02 -04:00
committed by Nik Bougalis
parent c946043280
commit b2f2d89a08
12 changed files with 60 additions and 42 deletions

View File

@@ -38,7 +38,7 @@ struct json_body
class reader
{
using dynamic_buffer_type = boost::beast::multi_buffer;
dynamic_buffer_type buffer_;
public:
@@ -85,11 +85,12 @@ struct json_body
using const_buffers_type =
boost::asio::const_buffer;
template<bool isRequest, class Fields>
template <bool isRequest, class Fields>
explicit
writer(boost::beast::http::message<isRequest,
json_body, Fields> const& msg)
: body_string_(to_string(msg.body()))
writer(
boost::beast::http::header<isRequest, Fields> const& fields,
value_type const& value)
: body_string_(to_string(value))
{
}