mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Replace boost/algorithm/cxx11 with C++11 features
This commit is contained in:
@@ -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; }
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user