- 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);