Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not downcast activities to the wrong type just to get their name
[simgrid.git] / src / kernel / EngineImpl.hpp
index 5712dc9799e2222bc95bb8816c13771c65fdeee9..f619bf69318070a82980d73bf69f432f3c3c3b7c 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; }