Skip to content

Commit

Permalink
Adapt to cpp17: std::iterator is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dpiparo authored and bernhardmgruber committed Sep 29, 2023
1 parent d4b8109 commit ea663e2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Vc/common/simdize.h
Original file line number Diff line number Diff line change
Expand Up @@ -1553,12 +1553,11 @@ class Iterator;

template <typename T, size_t N, IteratorDetails::Mutable M, typename V, size_t Size_>
class Iterator<T, N, M, V, Size_, std::forward_iterator_tag>
: public std::iterator<typename std::iterator_traits<T>::iterator_category, V,
typename std::iterator_traits<T>::difference_type,
IteratorDetails::Pointer<T, V, M>,
IteratorDetails::Reference<T, V, M>>
{
public:
using iterator_category = typename std::iterator_traits<T>::iterator_category;
using difference_type = typename std::iterator_traits<T>::difference_type;
using value_type = V;
using pointer = IteratorDetails::Pointer<T, V, M>;
using reference = IteratorDetails::Reference<T, V, M>;
using const_pointer = IteratorDetails::Pointer<T, V, IteratorDetails::Mutable::No>;
Expand Down

0 comments on commit ea663e2

Please sign in to comment.