X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c1b3e440de2150420b08c0bc55a125a0c9eb86bc..9e3b2f1d55a07271c05db2ed5b3fec27561097f9:/src/bindings/python/simgrid_python.cpp diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index 1469120ee9..eb7456308c 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -116,7 +116,7 @@ PYBIND11_MODULE(simgrid, m) ":cpp:func:`simgrid::s4u::Engine::load_deployment()`") .def("run", &Engine::run, "Run the simulation") .def("register_actor", - [pyStopRequestEx](Engine*, std::string name, py::object fun_or_class) { + [pyStopRequestEx](Engine*, const std::string& name, py::object fun_or_class) { simgrid::simix::register_function( name, [pyStopRequestEx, fun_or_class](std::vector args) -> simgrid::simix::ActorCode { return [pyStopRequestEx, fun_or_class, args]() {