mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not use std::iterator that is deprecated in c++17.
This commit is contained in:
parent
cb218fe018
commit
94086e734b
@ -64,9 +64,14 @@ private:
|
|||||||
/// Iterator that skips tags and skips to the end if (all branches of) the control
|
/// Iterator that skips tags and skips to the end if (all branches of) the control
|
||||||
/// flow does not continue to the next instruction.
|
/// flow does not continue to the next instruction.
|
||||||
/// If the arguments are supplied to the constructor, replaces items on the fly.
|
/// 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:
|
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(
|
BlockIterator(
|
||||||
AssemblyItems::const_iterator _it,
|
AssemblyItems::const_iterator _it,
|
||||||
AssemblyItems::const_iterator _end,
|
AssemblyItems::const_iterator _end,
|
||||||
|
Loading…
Reference in New Issue
Block a user