X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1fe6b9bc2572a0f781ff46643270e13ff5003d42..75e8b2ae65722d849ef899616de7091286ec91f5:/src/bindings/python/simgrid_python.cpp diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index 1f3acfd8b4..6e8550ef62 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -199,11 +199,12 @@ PYBIND11_MODULE(simgrid, m) "Test whether the communication is terminated, see :cpp:func:`simgrid::s4u::Comm::test()`") .def("wait", [](simgrid::s4u::CommPtr self) { self->wait(); }, "Block until the completion of that communication, see :cpp:func:`simgrid::s4u::Comm::wait()`") - .def("wait_all", [](std::vector* comms) { simgrid::s4u::Comm::wait_all(comms); }, + .def("wait_all", [](const std::vector* comms) { simgrid::s4u::Comm::wait_all(comms); }, "Block until the completion of all communications in the list, see " ":cpp:func:`simgrid::s4u::Comm::wait_all()`") .def( - "wait_any", [](std::vector* comms) { return simgrid::s4u::Comm::wait_any(comms); }, + "wait_any", + [](const std::vector* comms) { return simgrid::s4u::Comm::wait_any(comms); }, "Block until the completion of any communication in the list and return the index of the terminated one, see " ":cpp:func:`simgrid::s4u::Comm::wait_any()`"); py::class_(m, "Exec", "Execution, see :ref:`class s4u::Exec `")