Skip to content

Commit e3aacc6

Browse files
committed
Fix a compile error with obsoleted details.
Because boost/detail/iterator.hpp is now obsoleted, see boostorg/iterator@b2b9ab1 .
1 parent 42b06fa commit e3aacc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/python/slice.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class slice : public detail::slice_base
119119
slice::range<RandomAccessIterator> ret;
120120

121121
typedef typename iterator_difference<RandomAccessIterator>::type difference_type;
122-
difference_type max_dist = boost::detail::distance(begin, end);
122+
difference_type max_dist = std::distance(begin, end);
123123

124124
object slice_start = this->start();
125125
object slice_stop = this->stop();
@@ -212,7 +212,7 @@ class slice : public detail::slice_base
212212
// (inclusive), and final_dist is the maximum distance covered by the
213213
// slice.
214214
typename iterator_difference<RandomAccessIterator>::type final_dist =
215-
boost::detail::distance( ret.start, ret.stop);
215+
std::distance( ret.start, ret.stop);
216216

217217
// First case, if both ret.start and ret.stop are equal, then step
218218
// is irrelevant and we can return here.

0 commit comments

Comments
 (0)