Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add activity-test-wait testing test() and wait_for() for activities.
[simgrid.git] / src / kernel / EngineImpl.cpp
index b0ca6699dee517a69d816fc7f4c5473d9d5c6d7b..28f993c4b7e55bed3570e7daed847eca74f7f13f 100644 (file)
@@ -49,11 +49,11 @@ void EngineImpl::load_deployment(const std::string& file)
   surf_parse_close();
 }
 
-void EngineImpl::register_function(const std::string& name, actor::ActorCodeFactory code)
+void EngineImpl::register_function(const std::string& name, const actor::ActorCodeFactory& code)
 {
   registered_functions[name] = code;
 }
-void EngineImpl::register_default(actor::ActorCodeFactory code)
+void EngineImpl::register_default(const actor::ActorCodeFactory& code)
 {
   default_function = code;
 }