Skip to content

Commit a40f6d1

Browse files
authored
Merge pull request #47 from mshabunin/cpp-17
build: remove deprecated std::iterator usage
2 parents 0e8a2cc + 9659e1b commit a40f6d1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

+8-1
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)