]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/intrusive/test/iterator_test.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / intrusive / test / iterator_test.hpp
index 486cdd8115e393c6c829103363b0ae4caa86ea87..725e28f5e9898fecf09761e084ce7c644e694185 100644 (file)
@@ -258,10 +258,11 @@ template<class C, class I>
 void test_iterator_random_functions(C const &c, I const b, I const e)
 {
    typedef typename C::size_type size_type;
+   typedef typename C::difference_type difference_type;
    {
       I it = b;
-      for(size_type i = 0, m = c.size(); i != m; ++i, ++it){
-         BOOST_TEST(i == size_type(it - b));
+      for(difference_type i = 0, m = difference_type(c.size()); i != m; ++i, ++it){
+         BOOST_TEST(i == it - b);
          BOOST_TEST(b[i] == *it);
          BOOST_TEST(&b[i] == &*it);
          BOOST_TEST((b + i) == it);