Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use const& for the parameters of type std::string not affected by previous commit.
[simgrid.git] / include / simgrid / simix.hpp
index 7cabe4f..72a9f50 100644 (file)
@@ -74,7 +74,7 @@ typedef std::function<void()> ActorCode;
 // Create an ActorCode based on a std::string
 typedef std::function<ActorCode(std::vector<std::string> args)> ActorCodeFactory;
 
-XBT_PUBLIC void register_function(std::string name, ActorCodeFactory factory);
+XBT_PUBLIC void register_function(const std::string& name, ActorCodeFactory factory);
 }
 }