]> AND Public Git Repository - simgrid.git/blobdiff - include/simgrid/s4u/Activity.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use a const reference for parameter.
[simgrid.git] / include / simgrid / s4u / Activity.hpp
index 68635874c763a524adf17a50d97050e1927bf7c0..4608f49a8ab6d7a003520dda0cc0ab03d7b265a3 100644 (file)
@@ -6,11 +6,12 @@
 #ifndef SIMGRID_S4U_ACTIVITY_HPP
 #define SIMGRID_S4U_ACTIVITY_HPP
 
-#include "xbt/asserts.h"
+#include <xbt/asserts.h>
 #include <algorithm>
 #include <atomic>
 #include <set>
 #include <simgrid/forward.h>
+#include <stdexcept>
 #include <string>
 #include <vector>
 #include <xbt/signal.hpp>
@@ -73,7 +74,6 @@ protected:
       a->dependencies_.erase({this});
     } else
       throw std::invalid_argument("Dependency does not exist. Can not be removed.");
-
   }
 
 public: