Merge pull request #11941 from ethereum/remove-std-iterator

Do not use std::iterator that is deprecated in c++17
This commit is contained in:
chriseth 2021-09-14 15:20:45 +02:00 committed by GitHub
commit 332c9940f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,9 +64,14 @@ private:
/// Iterator that skips tags and skips to the end if (all branches of) the control
/// flow does not continue to the next instruction.
/// If the arguments are supplied to the constructor, replaces items on the fly.
struct BlockIterator: std::iterator<std::forward_iterator_tag, AssemblyItem const>
struct BlockIterator
{
public:
using iterator_category = std::forward_iterator_tag;
using value_type = AssemblyItem const;
using difference_type = std::ptrdiff_t;
using pointer = AssemblyItem const*;
using reference = AssemblyItem const&;
BlockIterator(
AssemblyItems::const_iterator _it,
AssemblyItems::const_iterator _end,