Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: remove deprecated std::iterator usage #47

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion sources/ade/include/ade/util/md_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ inline SliceDimension make_dimension(int l, int s) //TODO: move to C++14
}

template<typename ParentT, typename DiffT = int>
class MdViewIteratorImpl final : public std::iterator<std::random_access_iterator_tag, DiffT>
class MdViewIteratorImpl final
{
ParentT* m_parent = nullptr;
int m_currentPos = -1;
Expand All @@ -70,6 +70,13 @@ class MdViewIteratorImpl final : public std::iterator<std::random_access_iterato

using diff_t = DiffT;
using val_t = decltype(ParentT()[0]);

using iterator_category = std::random_access_iterator_tag;
using value_type = val_t;
using difference_type = diff_t;
using pointer = val_t*;
using reference = val_t&;

public:

MdViewIteratorImpl() = default;
Expand Down
Loading