Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[HostLoad] Delete default constructors explicitly
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 8 Jun 2018 18:28:06 +0000 (20:28 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 21 Jun 2018 09:55:40 +0000 (11:55 +0200)
src/plugins/host_load.cpp

index 17ae65a..5399de2 100644 (file)
@@ -32,6 +32,9 @@ public:
   {
   }
   ~HostLoad() = default;
+  HostLoad() = delete;
+  explicit HostLoad(simgrid::s4u::Host& ptr) = delete;
+  explicit HostLoad(simgrid::s4u::Host&& ptr) = delete;
 
   double get_current_load();
   double get_average_load() { return (theor_max_flops_ == 0) ? 0 : computed_flops_ / theor_max_flops_; };