Skip to content

Commit

Permalink
Don't use std::iterator; it's deprecated in C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyCarter committed Jun 5, 2017
1 parent 06894b8 commit 9f990c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/range/v3/action/concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ namespace ranges
{
template<typename T>
struct movable_input_iterator
: std::iterator<std::input_iterator_tag, T, std::ptrdiff_t, T *, T &&>
{
using iterator_category = std::input_iterator_tag;
using value_type = T;
using difference_type = std::ptrdiff_t;
using pointer = T *;
using reference = T &&;

movable_input_iterator() = default;
movable_input_iterator &operator++();
movable_input_iterator operator++(int);
Expand Down

0 comments on commit 9f990c4

Please sign in to comment.