Skip to content

Commit 63e3079

Browse files
Merge pull request boostorg#43 from Flast/patch-1
Fix a compile error with obsoleted details.
2 parents adfac2d + e3aacc6 commit 63e3079

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)