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
2 changed files with 2 additions and 2 deletions
+1 -1
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;
+1 -1
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;