Skip to content

Commit 9659e1b

Browse files
committed
build: remove deprecated std::iterator usage
1 parent 0e8a2cc commit 9659e1b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

sources/ade/include/ade/util/md_view.hpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ inline SliceDimension make_dimension(int l, int s) //TODO: move to C++14
4444
}
4545

4646
template<typename ParentT, typename DiffT = int>
47-
class MdViewIteratorImpl final : public std::iterator<std::random_access_iterator_tag, DiffT>
47+
class MdViewIteratorImpl final
4848
{
4949
ParentT* m_parent = nullptr;
5050
int m_currentPos = -1;
@@ -70,6 +70,13 @@ class MdViewIteratorImpl final : public std::iterator<std::random_access_iterato
7070

7171
using diff_t = DiffT;
7272
using val_t = decltype(ParentT()[0]);
73+
74+
using iterator_category = std::random_access_iterator_tag;
75+
using value_type = val_t;
76+
using difference_type = diff_t;
77+
using pointer = val_t*;
78+
using reference = val_t&;
79+
7380
public:
7481

7582
MdViewIteratorImpl() = default;

0 commit comments

Comments
 (0)