Skip to content

Commit

Permalink
Fixed deprecated warning for std::iterator<>
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaa committed Aug 17, 2024
1 parent a58b0e9 commit 155abd8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions include/restc-cpp/IteratorFromJsonSerializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ class IteratorFromJsonSerializer
public:
using data_t = typename std::remove_const<typename std::remove_reference<objectT>::type>::type;

class Iterator : public std::iterator<
std::input_iterator_tag,
data_t,
std::ptrdiff_t,
const data_t *,
data_t&> {
class Iterator {
public:
using iterator_category = std::input_iterator_tag;
using value_type = data_t;
using difference_type = std::ptrdiff_t;
using pointer = value_type*;
using reference = value_type&;

public:
Iterator() {}
Expand Down

0 comments on commit 155abd8

Please sign in to comment.