Explicitly use std::next to avoid boost version.

This commit is contained in:
chriseth 2018-08-09 01:12:39 +02:00
parent b4e33ec25c
commit 7d9692c31d
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ std::string joinHumanReadable
for (;it != itEnd; ++it) for (;it != itEnd; ++it)
{ {
if ((next(it) == itEnd) && !_lastSeparator.empty()) if ((std::next(it) == itEnd) && !_lastSeparator.empty())
result += _lastSeparator; // last iteration result += _lastSeparator; // last iteration
else else
result += _separator; result += _separator;

View File

@ -330,7 +330,7 @@ void dev::solidity::eachInstruction(
u256 data; u256 data;
// fill the data with the additional data bytes from the instruction stream // fill the data with the additional data bytes from the instruction stream
while (additional > 0 && next(it) < _mem.end()) while (additional > 0 && std::next(it) < _mem.end())
{ {
data <<= 8; data <<= 8;
data |= *++it; data |= *++it;