Merge pull request #10978 from ethereum/use-std-bind

test/libsolidity/util/ContractABIUtils.cpp: use std::bind.
This commit is contained in:
Alex Beregszaszi 2021-02-19 12:00:54 +00:00 committed by GitHub
commit d48671a2b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,6 @@
#include <boost/algorithm/string.hpp>
#include <boost/assign/list_of.hpp>
#include <boost/bind.hpp>
#include <boost/range/algorithm_ext/for_each.hpp>
#include <fstream>
@ -262,10 +261,11 @@ void ContractABIUtils::overwriteParameters(
solidity::frontend::test::ParameterList const& _sourceParameters
)
{
using namespace placeholders;
boost::for_each(
_sourceParameters,
_targetParameters,
boost::bind<void>(
std::bind<void>(
[&](Parameter _a, Parameter& _b) -> void
{
if (