Skip to content

Commit ca83561

Browse files
committed
Do not use std::iterator that is deprecated in c++17.
1 parent dea1b9e commit ca83561

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libevmasm/BlockDeduplicator.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,14 @@ class BlockDeduplicator
6464
/// Iterator that skips tags and skips to the end if (all branches of) the control
6565
/// flow does not continue to the next instruction.
6666
/// If the arguments are supplied to the constructor, replaces items on the fly.
67-
struct BlockIterator: std::iterator<std::forward_iterator_tag, AssemblyItem const>
67+
struct BlockIterator
6868
{
6969
public:
70+
using iterator_category = std::forward_iterator_tag;
71+
using value_type = AssemblyItem const;
72+
using difference_type = long;
73+
using pointer = AssemblyItem const*;
74+
using reference = AssemblyItem const&;
7075
BlockIterator(
7176
AssemblyItems::const_iterator _it,
7277
AssemblyItems::const_iterator _end,

0 commit comments

Comments
 (0)