Commit bd86505d authored by Dominik Charousset's avatar Dominik Charousset

Silence deprecation warning

parent 7388bc71
...@@ -4,10 +4,11 @@ ...@@ -4,10 +4,11 @@
#pragma once #pragma once
#include <iterator>
#include "caf/detail/type_traits.hpp" #include "caf/detail/type_traits.hpp"
#include <cstddef>
#include <iterator>
namespace caf { namespace caf {
template <class T> template <class T>
...@@ -21,8 +22,18 @@ public: ...@@ -21,8 +22,18 @@ public:
input_range(const input_range&) = default; input_range(const input_range&) = default;
input_range& operator=(const input_range&) = default; input_range& operator=(const input_range&) = default;
class iterator : public std::iterator<std::input_iterator_tag, T> { class iterator {
public: public:
using iterator_category = std::input_iterator_tag;
using value_type = T;
using difference_type = ptrdiff_t;
using pointer = T*;
using reference = T&;
iterator(input_range* range) : xs_(range) { iterator(input_range* range) : xs_(range) {
if (xs_) if (xs_)
advance(); advance();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment