summaryrefslogtreecommitdiff
path: root/boost/multi_index/detail/rnd_node_iterator.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/multi_index/detail/rnd_node_iterator.hpp')
-rw-r--r--boost/multi_index/detail/rnd_node_iterator.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/boost/multi_index/detail/rnd_node_iterator.hpp b/boost/multi_index/detail/rnd_node_iterator.hpp
index 48026132fb..49fc4220e3 100644
--- a/boost/multi_index/detail/rnd_node_iterator.hpp
+++ b/boost/multi_index/detail/rnd_node_iterator.hpp
@@ -1,4 +1,4 @@
-/* Copyright 2003-2014 Joaquin M Lopez Munoz.
+/* Copyright 2003-2018 Joaquin M Lopez Munoz.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
@@ -34,7 +34,7 @@ class rnd_node_iterator:
public random_access_iterator_helper<
rnd_node_iterator<Node>,
typename Node::value_type,
- std::ptrdiff_t,
+ typename Node::difference_type,
const typename Node::value_type*,
const typename Node::value_type&>
{
@@ -60,13 +60,13 @@ public:
return *this;
}
- rnd_node_iterator& operator+=(std::ptrdiff_t n)
+ rnd_node_iterator& operator+=(typename Node::difference_type n)
{
Node::advance(node,n);
return *this;
}
- rnd_node_iterator& operator-=(std::ptrdiff_t n)
+ rnd_node_iterator& operator-=(typename Node::difference_type n)
{
Node::advance(node,-n);
return *this;
@@ -124,7 +124,7 @@ bool operator<(
}
template<typename Node>
-std::ptrdiff_t operator-(
+typename Node::difference_type operator-(
const rnd_node_iterator<Node>& x,
const rnd_node_iterator<Node>& y)
{