Do not use std::iterator that is deprecated in c++17.

This commit is contained in:
Bhargava Shastry 2021-09-13 11:22:26 +02:00
parent cb218fe018
commit 94086e734b

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,