mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 15:35:50 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user