Support for boost 1.71:

* replace boost::beast::detail::iequals with boost::iequals
* replace deprecated `buffers` function with `make_printable`
* replace boost::beast::detail::ascii_tolower with lambda
* add missing includes
This commit is contained in:
seelabs
2019-08-12 09:30:25 -07:00
committed by Manoj doshi
parent 2110b24090
commit ca6d5798e9
13 changed files with 51 additions and 29 deletions

View File

@@ -36,6 +36,7 @@
#include <ripple/rpc/handlers/GetCounts.h>
#include <ripple/server/SimpleWriter.h>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/utility/in_place_factory.hpp>
namespace ripple {
@@ -226,7 +227,7 @@ OverlayImpl::onHandoff (std::unique_ptr <beast::asio::ssl_bundle>&& ssl_bundle,
if (std::find_if(types.begin(), types.end(),
[](std::string const& s)
{
return boost::beast::detail::iequals(s, "peer");
return boost::iequals(s, "peer");
}) == types.end())
{
handoff.moved = false;