]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/container/test/check_equal_containers.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / container / test / check_equal_containers.hpp
index 758780a7f7703b64b013caeaa670033b9e882972..f795b0d6b53534ed483a4900824f0253dddd8cb8 100644 (file)
@@ -14,6 +14,7 @@
 #include <boost/container/detail/config_begin.hpp>
 #include <boost/container/detail/pair.hpp>
 #include <boost/container/detail/mpl.hpp>
+#include <boost/container/detail/is_pair.hpp>
 #include <boost/move/unique_ptr.hpp>
 #include <boost/move/utility_core.hpp>
 
@@ -69,11 +70,11 @@ bool CheckEqualContainers(const ContA &cont_a, const ContB &cont_b)
 
    typename ContA::const_iterator itcont_a(cont_a.begin()), itcont_a_end(cont_a.end());
    typename ContB::const_iterator itcont_b(cont_b.begin()), itcont_b_end(cont_b.end());;
-   typename ContB::size_type dist = (typename ContB::size_type)boost::container::iterator_distance(itcont_a, itcont_a_end);
+   typename ContB::size_type dist = boost::container::iterator_udistance(itcont_a, itcont_a_end);
    if(dist != cont_a.size()){
       return false;
    }
-   typename ContA::size_type dist2 = (typename ContA::size_type)boost::container::iterator_distance(itcont_b, itcont_b_end);
+   typename ContA::size_type dist2 = boost::container::iterator_udistance(itcont_b, itcont_b_end);
    if(dist2 != cont_b.size()){
       return false;
    }