Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] Activity ought not to be copied
[simgrid.git] / include / simgrid / s4u / Activity.hpp
index fae7fb8..0b8d303 100644 (file)
@@ -33,6 +33,9 @@ protected:
   virtual ~Activity();
 
 public:
   virtual ~Activity();
 
 public:
+  Activity(Activity const&) = delete;
+  Activity& operator=(Activity const&) = delete;
+
   /** Starts a previously created activity.
    *
    * This function is optional: you can call wait() even if you didn't call start()
   /** Starts a previously created activity.
    *
    * This function is optional: you can call wait() even if you didn't call start()