Replace boost/algorithm/cxx11 with C++11 features

This commit is contained in:
Alex Beregszaszi
2020-05-11 14:27:54 +01:00
parent 81397dc2c5
commit 875415a132
7 changed files with 17 additions and 14 deletions
+3 -3
View File
@@ -25,7 +25,6 @@
#include <libsolutil/Visitor.h>
#include <boost/range/algorithm_ext/erase.hpp>
#include <boost/algorithm/cxx11/any_of.hpp>
using namespace std;
using namespace solidity;
@@ -60,8 +59,9 @@ void removeEmptyDefaultFromSwitch(Switch& _switchStmt)
void removeEmptyCasesFromSwitch(Switch& _switchStmt)
{
bool hasDefault = boost::algorithm::any_of(
_switchStmt.cases,
bool hasDefault = std::any_of(
_switchStmt.cases.begin(),
_switchStmt.cases.end(),
[](Case const& _case) { return !_case.value; }
);