]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/intrusive/test/unordered_set_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / intrusive / test / unordered_set_test.cpp
index 60e8d36811e8658a3d3030e76da0095e98d93de9..10c23e0d76020b7485b5d925fce9e6592f81aaad 100644 (file)
@@ -17,7 +17,7 @@
 #include "common_functors.hpp"
 #include <vector>
 #include <set>
-#include <boost/detail/lightweight_test.hpp>
+#include <boost/core/lightweight_test.hpp>
 #include "test_macros.hpp"
 #include "test_container.hpp"
 #include "unordered_test_common.hpp"
@@ -74,7 +74,7 @@ class test_main_template<VoidPointer, ConstantTimeSize, DefaultHolder, Map, Base
       static const int random_init[6] = { 3, 2, 4, 1, 5, 2 };
       typedef typename ValueContainer< value_type >::type value_cont_type;
       value_cont_type data (6);
-      for (int i = 0; i < 6; ++i)
+      for (std::size_t i = 0; i < 6u; ++i)
          data[i].value_ = random_init[i];
 
       typedef testvalue_traits< unordered_hooks<VoidPointer> > testval_traits_t;
@@ -101,7 +101,7 @@ class test_main_template<VoidPointer, ConstantTimeSize, DefaultHolder, Map, Memb
       static const int random_init[6] = { 3, 2, 4, 1, 5, 2 };
       typedef typename ValueContainer< value_type >::type value_cont_type;
       value_cont_type data (6);
-      for (int i = 0; i < 6; ++i)
+      for (std::size_t i = 0; i < 6u; ++i)
          data[i].value_ = random_init[i];
 
       typedef testvalue_traits< unordered_hooks<VoidPointer> > testval_traits_t;
@@ -129,7 +129,7 @@ class test_main_template<VoidPointer, ConstantTimeSize, DefaultHolder, Map, NonM
       static const int random_init[6] = { 3, 2, 4, 1, 5, 2 };
       typedef typename ValueContainer< value_type >::type value_cont_type;
       value_cont_type data (6);
-      for (int i = 0; i < 6; ++i)
+      for (std::size_t i = 0; i < 6u; ++i)
          data[i].value_ = random_init[i];
 
       typedef testvalue_traits< unordered_hooks<VoidPointer> > testval_traits_t;