File tree Expand file tree Collapse file tree 1 file changed +10
-20
lines changed Expand file tree Collapse file tree 1 file changed +10
-20
lines changed Original file line number Diff line number Diff line change 29
29
30
30
#include < boost/algorithm/string.hpp>
31
31
#include < boost/assign/list_of.hpp>
32
- #include < boost/ range/algorithm_ext/for_each .hpp>
32
+ #include < range/v3/view/zip .hpp>
33
33
34
34
#include < fstream>
35
35
#include < memory>
@@ -281,26 +281,16 @@ void ContractABIUtils::overwriteParameters(
281
281
)
282
282
{
283
283
using namespace placeholders ;
284
- boost::for_each (
285
- _sourceParameters,
286
- _targetParameters,
287
- std::bind<void >(
288
- [&](Parameter _a, Parameter& _b) -> void
284
+ for (auto && [source, target]: ranges::views::zip (_sourceParameters, _targetParameters))
285
+ if (
286
+ source.abiType .size != target.abiType .size ||
287
+ source.abiType .type != target.abiType .type ||
288
+ source.abiType .fractionalDigits != target.abiType .fractionalDigits
289
+ )
289
290
{
290
- if (
291
- _a.abiType .size != _b.abiType .size ||
292
- _a.abiType .type != _b.abiType .type ||
293
- _a.abiType .fractionalDigits != _b.abiType .fractionalDigits
294
- )
295
- {
296
- _errorReporter.warning (" Type or size of parameter(s) does not match." );
297
- _b = _a;
298
- }
299
- },
300
- _1,
301
- _2
302
- )
303
- );
291
+ _errorReporter.warning (" Type or size of parameter(s) does not match." );
292
+ target = source;
293
+ }
304
294
}
305
295
306
296
solidity::frontend::test::ParameterList ContractABIUtils::preferredParameters (
You can’t perform that action at this time.
0 commit comments