Merge pull request #4781 from ethereum/stdNext

Explicitly use std::next to avoid boost version.
This commit is contained in:
chriseth 2018-08-09 01:30:40 +02:00 committed by GitHub
commit 711e2b7cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -330,7 +330,7 @@ void dev::solidity::eachInstruction(
u256 data;
// 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 |= *++it;