Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Refactor Host and HostImpl
[simgrid.git] / include / simgrid / s4u / Engine.hpp
index 25f87a0..9013733 100644 (file)
@@ -85,6 +85,7 @@ public:
 
 protected:
 #ifndef DOXYGEN
+  friend surf::HostImpl;
   friend Host;
   friend Link;
   friend Disk;
@@ -137,7 +138,7 @@ public:
    * @param list  List of dependencies for this model (optional)
    */
   void add_model(std::shared_ptr<simgrid::kernel::resource::Model> model,
-                 std::vector<kernel::resource::Model*>&& dependencies = {});
+                 const std::vector<kernel::resource::Model*>& dependencies = {});
 
   /** @brief Get list of all models managed by this engine */
   const std::vector<simgrid::kernel::resource::Model*>& get_all_models() const;