From 2eb85cd0c98bcbc806d67fddc959440befdddeab Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Fri, 8 Jun 2018 20:28:06 +0200 Subject: [PATCH] [HostLoad] Delete default constructors explicitly --- src/plugins/host_load.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/host_load.cpp b/src/plugins/host_load.cpp index 17ae65aaa0..5399de2439 100644 --- a/src/plugins/host_load.cpp +++ b/src/plugins/host_load.cpp @@ -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_; }; -- 2.20.1