From b7a2b0d929d417fef54cfd48c37107056f10eeaa Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 4 Jan 2023 16:20:31 +0100 Subject: [PATCH] Use C++ string for argument. --- src/bindings/python/simgrid_python.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index 82b035ca33..7ba51a0b62 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -855,7 +855,7 @@ PYBIND11_MODULE(simgrid, m) "application. See the C++ documentation for details.") .def( "create", - [](py::str name, Host* h, py::object fun, py::args args) { + [](const std::string& name, Host* h, py::object fun, py::args args) { fun.inc_ref(); // FIXME: why is this needed for tests like exec-async, exec-dvfs and exec-remote? args.inc_ref(); // FIXME: why is this needed for tests like actor-migrate? return simgrid::s4u::Actor::create(name, h, [fun, args]() { -- 2.20.1