Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git] / src / mc / api / strategy / Strategy.hpp
index 8696b17..92615d5 100644 (file)
@@ -20,6 +20,11 @@ public:
   /** Used to store penalties computed by the strategy to each actor */
   std::map<aid_t, double> penalties_;
   virtual ~Strategy()                                      = default;
+  void operator=(const Strategy&)
+  { /* nothing to copy over while cloning */
+    return;
+  }
+
   virtual std::pair<aid_t, double> next_transition() const = 0;
   virtual void execute_next(aid_t aid, RemoteApp& app)     = 0;
   virtual void consider_best()                             = 0;