]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/api/strategy/Strategy.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sonar...
[simgrid.git] / src / mc / api / strategy / Strategy.hpp
index ef5b87f37b571257488de2136d368e47816085ff..a53078962478425816f73af582f52da979edcc83 100644 (file)
@@ -17,10 +17,12 @@ protected:
   std::map<aid_t, ActorState> actors_to_run_;
 
 public:
-  virtual ~Strategy()                                      = default;
-  void operator=(const Strategy&)
+  Strategy()                = default;
+  virtual ~Strategy()       = default;
+  Strategy(const Strategy&) = delete;
+  Strategy& operator=(const Strategy&)
   { /* nothing to copy over while cloning */
-    return;
+    return *this;
   }
 
   virtual std::pair<aid_t, int> next_transition() const = 0;