]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/graph/distributed/detail/mpi_process_group.ipp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / graph / distributed / detail / mpi_process_group.ipp
index c157387be93e83dd61281c8dca8ff00ad26ab509..94050da9c29f18b3b5626df719e263cf01fde4a6 100644 (file)
@@ -839,10 +839,19 @@ all_gather(const mpi_process_group& pg, InputIterator first,
                              &sizes[0], 1, MPI_INT,
                              communicator(pg));
   BOOST_ASSERT(result == MPI_SUCCESS);
+  (void)result;
 
   // Adjust sizes based on the number of bytes
-  std::transform(sizes.begin(), sizes.end(), sizes.begin(),
-                 std::bind2nd(std::multiplies<int>(), sizeof(T)));
+  //
+  // std::transform(sizes.begin(), sizes.end(), sizes.begin(),
+  //               std::bind2nd(std::multiplies<int>(), sizeof(T)));
+  //
+  // std::bind2nd has been removed from C++17
+
+  for( std::size_t i = 0, n = sizes.size(); i < n; ++i )
+  {
+    sizes[ i ] *= sizeof( T );
+  }
 
   // Compute displacements
   std::vector<int> displacements;
@@ -880,6 +889,7 @@ process_subgroup(const mpi_process_group& pg,
   MPI_Group current_group;
   int result = MPI_Comm_group(communicator(pg), &current_group);
   BOOST_ASSERT(result == MPI_SUCCESS);
+  (void)result;
 
   MPI_Group new_group;
   result = MPI_Group_incl(current_group, ranks.size(), &ranks[0], &new_group);