From: Christian Heinrich Date: Fri, 8 Jun 2018 18:28:06 +0000 (+0200) Subject: [HostLoad] Delete default constructors explicitly X-Git-Tag: v3.20~43 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2eb85cd0c98bcbc806d67fddc959440befdddeab [HostLoad] Delete default constructors explicitly --- 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_; };