Boost logo

Boost-Commit :

Subject: [Boost-commit] [SPAM:### 83%] svn:boost r84726 - trunk/boost/geometry/index/detail/rtree
From: mateusz_at_[hidden]
Date: 2013-06-10 11:08:05


Author: mloskot
Date: 2013-06-10 11:08:04 EDT (Mon, 10 Jun 2013)
New Revision: 84726
URL: http://svn.boost.org/trac/boost/changeset/84726

Log:
[geometry] Iterator difference is not always std::size_t

Text files modified:
   trunk/boost/geometry/index/detail/rtree/pack_create.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/geometry/index/detail/rtree/pack_create.hpp
==============================================================================
--- trunk/boost/geometry/index/detail/rtree/pack_create.hpp Mon Jun 10 10:29:39 2013 (r84725)
+++ trunk/boost/geometry/index/detail/rtree/pack_create.hpp 2013-06-10 11:08:04 EDT (Mon, 10 Jun 2013) (r84726)
@@ -173,7 +173,7 @@
     internal_element per_level(EIt first, EIt last, Box const& hint_box, std::size_t count, subtree_elements_counts const& subtree_counts)
     {
         // remove it later
- BOOST_ASSERT(first <= last); BOOST_ASSERT(last - first == count);
+ BOOST_ASSERT(first <= last); BOOST_ASSERT(last - first == typename std::iterator_traits<EIt>::difference_type(count));
 
         if ( subtree_counts.maxc <= 1 )
         {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk