From 69dd1771b7732720b4efb5838423a9e6f6a9bd0b Mon Sep 17 00:00:00 2001 From: Bhargava Shastry Date: Thu, 4 Feb 2021 18:07:13 +0100 Subject: [PATCH] Remove as many boost usages as possible in protoToYul.cpp --- test/tools/ossfuzz/protoToYul.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/test/tools/ossfuzz/protoToYul.cpp b/test/tools/ossfuzz/protoToYul.cpp index c58a56ad2..53a706efb 100644 --- a/test/tools/ossfuzz/protoToYul.cpp +++ b/test/tools/ossfuzz/protoToYul.cpp @@ -23,11 +23,14 @@ #include -#include -#include +#include + +#include #include #include +#include + using namespace std; using namespace solidity::yul::test::yul_fuzzer; using namespace solidity::yul::test; @@ -1161,9 +1164,10 @@ void ProtoConverter::visit(CaseStmt const& _x) // Ensure that all characters in the string literal except the first // and the last (double quote characters) are alphanumeric. yulAssert( - boost::algorithm::all_of(literal.begin() + 1, literal.end() - 2, [=](char c) -> bool { - return std::isalpha(c) || std::isdigit(c); - }), + ranges::all_of( + literal.begin() + 1, + literal.end() - 2, + [=](char c) { return isalpha(c) || isdigit(c); }), "Proto fuzzer: Invalid string literal encountered" );