From e3aacc64fe7e20d6fb59f91c0e82a04ededebb78 Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Sat, 10 Oct 2015 13:19:14 +0900 Subject: [PATCH] Fix a compile error with obsoleted details. Because boost/detail/iterator.hpp is now obsoleted, see boostorg/iterator@b2b9ab156881e700858c5a104c47e006eddcc717 . --- include/boost/python/slice.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/python/slice.hpp b/include/boost/python/slice.hpp index 19f316a1..80660fab 100644 --- a/include/boost/python/slice.hpp +++ b/include/boost/python/slice.hpp @@ -119,7 +119,7 @@ class slice : public detail::slice_base slice::range ret; typedef typename iterator_difference::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(); @@ -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::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.