Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix a compile error with obsoleted details.
Because boost/detail/iterator.hpp is now obsoleted, see boostorg/iterator@b2b9ab1 .
  • Loading branch information
Flast committed Oct 10, 2015
commit e3aacc64fe7e20d6fb59f91c0e82a04ededebb78
4 changes: 2 additions & 2 deletions include/boost/python/slice.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class slice : public detail::slice_base
slice::range<RandomAccessIterator> ret;

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

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

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