mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11311 from anurag-git/issue_10738-3
Use range-v3 loops(remove_erase, remove_erase_if)
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#include <liblangutil/Token.h>
|
||||
#include <libsolutil/CommonData.h>
|
||||
|
||||
#include <boost/range/algorithm_ext/erase.hpp>
|
||||
#include <range/v3/action/remove_if.hpp>
|
||||
|
||||
using namespace std;
|
||||
using namespace solidity;
|
||||
@@ -42,7 +42,7 @@ void yul::removeEmptyBlocks(Block& _block)
|
||||
auto isEmptyBlock = [](Statement const& _st) -> bool {
|
||||
return holds_alternative<Block>(_st) && std::get<Block>(_st).statements.empty();
|
||||
};
|
||||
boost::range::remove_erase_if(_block.statements, isEmptyBlock);
|
||||
ranges::actions::remove_if(_block.statements, isEmptyBlock);
|
||||
}
|
||||
|
||||
bool yul::isRestrictedIdentifier(Dialect const& _dialect, YulString const& _identifier)
|
||||
|
||||
Reference in New Issue
Block a user