]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/mpi/graph_communicator.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / mpi / graph_communicator.hpp
index d49703eb93c0dbe85a92e665ea8023de06ab4ea3..5bd1cf2851f036293fab2ebb481953d2b091ee37 100644 (file)
@@ -235,8 +235,8 @@ graph_communicator::setup_graph(const communicator& comm, const Graph& graph,
   BOOST_MPI_CHECK_RESULT(MPI_Graph_create,
                          ((MPI_Comm)comm, 
                           nvertices,
-                          &indices[0],
-                          edges.empty()? (int*)0 : &edges[0],
+                          detail::c_data(indices),
+                          detail::c_data(edges),
                           reorder,
                           &newcomm));
   this->comm_ptr.reset(new MPI_Comm(newcomm), comm_free());