]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/mpi/group.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / mpi / group.hpp
index 103b35a1187d9412ccc5487abcb842abc24f0034..7be24df1abc1571f1133abb1cbd00bed409a8899 100644 (file)
@@ -16,6 +16,7 @@
 #define BOOST_MPI_GROUP_HPP
 
 #include <boost/mpi/exception.hpp>
+#include <boost/mpi/detail/antiques.hpp>
 #include <boost/shared_ptr.hpp>
 #include <boost/optional.hpp>
 #include <vector>
@@ -272,9 +273,9 @@ group::translate_ranks(InputIterator first, InputIterator last,
   BOOST_MPI_CHECK_RESULT(MPI_Group_translate_ranks,
                          ((MPI_Group)*this,
                           in_array.size(),
-                          &in_array[0],
+                          detail::c_data(in_array),
                           (MPI_Group)to_group,
-                          &out_array[0]));
+                          detail::c_data(out_array)));
 
   for (std::vector<int>::size_type i = 0, n = out_array.size(); i < n; ++i)
     *out++ = out_array[i];
@@ -300,7 +301,7 @@ group group::include(InputIterator first, InputIterator last)
   std::vector<int> ranks(first, last);
   MPI_Group result;
   BOOST_MPI_CHECK_RESULT(MPI_Group_incl,
-                         ((MPI_Group)*this, ranks.size(), &ranks[0], &result));
+                         ((MPI_Group)*this, ranks.size(), detail::c_data(ranks), &result));
   return group(result, /*adopt=*/true);
 }
 
@@ -322,7 +323,7 @@ group group::exclude(InputIterator first, InputIterator last)
   std::vector<int> ranks(first, last);
   MPI_Group result;
   BOOST_MPI_CHECK_RESULT(MPI_Group_excl,
-                         ((MPI_Group)*this, ranks.size(), &ranks[0], &result));
+                         ((MPI_Group)*this, ranks.size(), detail::c_data(ranks), &result));
   return group(result, /*adopt=*/true);
 }