diff --git a/liblangutil/ErrorReporter.h b/liblangutil/ErrorReporter.h index 67fc76e83..6901e87b9 100644 --- a/liblangutil/ErrorReporter.h +++ b/liblangutil/ErrorReporter.h @@ -30,7 +30,8 @@ #include #include -#include +#include +#include namespace solidity::langutil { @@ -106,9 +107,8 @@ public: std::initializer_list const descs = { _descriptions... }; solAssert(descs.size() > 0, "Need error descriptions!"); - auto filterEmpty = boost::adaptors::filtered([](std::string const& _s) { return !_s.empty(); }); - - std::string errorStr = util::joinHumanReadable(descs | filterEmpty, " "); + auto nonEmpty = [](std::string const& _s) { return !_s.empty(); }; + std::string errorStr = util::joinHumanReadable(descs | ranges::views::filter(nonEmpty) | ranges::to_vector, " "); error(_error, Error::Type::TypeError, _location, errorStr); } diff --git a/libyul/AsmJsonConverter.h b/libyul/AsmJsonConverter.h index 6bb50002c..52e36d5cd 100644 --- a/libyul/AsmJsonConverter.h +++ b/libyul/AsmJsonConverter.h @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include diff --git a/libyul/optimiser/UnusedFunctionParameterPruner.cpp b/libyul/optimiser/UnusedFunctionParameterPruner.cpp index 6ce097f42..8f45f8406 100644 --- a/libyul/optimiser/UnusedFunctionParameterPruner.cpp +++ b/libyul/optimiser/UnusedFunctionParameterPruner.cpp @@ -31,7 +31,7 @@ #include -#include +#include #include #include @@ -64,7 +64,7 @@ void UnusedFunctionParameterPruner::run(OptimiserStepContext& _context, Block& _ { FunctionDefinition const& f = std::get(statement); - if (tooSimpleToBePruned(f) || boost::algorithm::all_of(f.parameters + f.returnVariables, used)) + if (tooSimpleToBePruned(f) || ranges::all_of(f.parameters + f.returnVariables, used)) continue; usedParametersAndReturnVariables[f.name] = { diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index ccaa8df94..db917d2b4 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -66,7 +66,6 @@ #include #include -#include #include #ifdef _WIN32 // windows diff --git a/test/libyul/ObjectParser.cpp b/test/libyul/ObjectParser.cpp index be3de930d..9e429177d 100644 --- a/test/libyul/ObjectParser.cpp +++ b/test/libyul/ObjectParser.cpp @@ -43,7 +43,6 @@ #include #include -using namespace ranges; using namespace std; using namespace solidity::frontend; using namespace solidity::langutil; diff --git a/test/tools/ossfuzz/protoToAbiV2.h b/test/tools/ossfuzz/protoToAbiV2.h index d54911353..7038ed706 100644 --- a/test/tools/ossfuzz/protoToAbiV2.h +++ b/test/tools/ossfuzz/protoToAbiV2.h @@ -10,9 +10,7 @@ #include -#include #include -#include #include #include diff --git a/test/tools/yulInterpreter/Interpreter.cpp b/test/tools/yulInterpreter/Interpreter.cpp index bf0ad820b..0f298f558 100644 --- a/test/tools/yulInterpreter/Interpreter.cpp +++ b/test/tools/yulInterpreter/Interpreter.cpp @@ -34,8 +34,6 @@ #include -#include - #include #include