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

@@ -318,15 +318,15 @@ void Config::loadFromString (std::string const& fileContents)
if (getSingleSection (secConfig, SECTION_NODE_SIZE, strTemp, j_))
{
if (boost::beast::detail::iequals(strTemp, "tiny"))
if (boost::iequals(strTemp, "tiny"))
NODE_SIZE = 0;
else if (boost::beast::detail::iequals(strTemp, "small"))
else if (boost::iequals(strTemp, "small"))
NODE_SIZE = 1;
else if (boost::beast::detail::iequals(strTemp, "medium"))
else if (boost::iequals(strTemp, "medium"))
NODE_SIZE = 2;
else if (boost::beast::detail::iequals(strTemp, "large"))
else if (boost::iequals(strTemp, "large"))
NODE_SIZE = 3;
else if (boost::beast::detail::iequals(strTemp, "huge"))
else if (boost::iequals(strTemp, "huge"))
NODE_SIZE = 4;
else
{
@@ -376,9 +376,9 @@ void Config::loadFromString (std::string const& fileContents)
if (getSingleSection (secConfig, SECTION_LEDGER_HISTORY, strTemp, j_))
{
if (boost::beast::detail::iequals(strTemp, "full"))
if (boost::iequals(strTemp, "full"))
LEDGER_HISTORY = 1000000000u;
else if (boost::beast::detail::iequals(strTemp, "none"))
else if (boost::iequals(strTemp, "none"))
LEDGER_HISTORY = 0;
else
LEDGER_HISTORY = beast::lexicalCastThrow <std::uint32_t> (strTemp);
@@ -386,9 +386,9 @@ void Config::loadFromString (std::string const& fileContents)
if (getSingleSection (secConfig, SECTION_FETCH_DEPTH, strTemp, j_))
{
if (boost::beast::detail::iequals(strTemp, "none"))
if (boost::iequals(strTemp, "none"))
FETCH_DEPTH = 0;
else if (boost::beast::detail::iequals(strTemp, "full"))
else if (boost::iequals(strTemp, "full"))
FETCH_DEPTH = 1000000000u;
else
FETCH_DEPTH = beast::lexicalCastThrow <std::uint32_t> (strTemp);