Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use const reference for parameter of type ActorCodeFactory.
[simgrid.git] / src / kernel / EngineImpl.hpp
index 5712dc9..f619bf6 100644 (file)
@@ -31,8 +31,8 @@ public:
   virtual ~EngineImpl();
 
   void load_deployment(const std::string& file);
-  void register_function(const std::string& name, actor::ActorCodeFactory code);
-  void register_default(actor::ActorCodeFactory code);
+  void register_function(const std::string& name, const actor::ActorCodeFactory& code);
+  void register_default(const actor::ActorCodeFactory& code);
 
   routing::NetZoneImpl* netzone_root_ = nullptr;
   static EngineImpl* get_instance() { return simgrid::s4u::Engine::get_instance()->pimpl; }