From f7cf88e9b8d4b9e06de8dc548df6b6adb780a893 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 14 Apr 2021 13:22:58 +0200 Subject: [PATCH] Delete the implicitely defined move constructor. Fix for sonar issue S5018: Move and swap operations should be "noexcept" Anyway, AFAICT, the implicit move constructor here does nothing more than the copy-constructor. --- src/kernel/lmm/maxmin.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kernel/lmm/maxmin.hpp b/src/kernel/lmm/maxmin.hpp index d2dae4622c..7faf61ff0f 100644 --- a/src/kernel/lmm/maxmin.hpp +++ b/src/kernel/lmm/maxmin.hpp @@ -143,6 +143,10 @@ namespace lmm { */ class XBT_PUBLIC Element { public: + Element() = default; + Element(const Element&) = default; + Element(Element&&) = delete; + int get_concurrency() const; void decrease_concurrency(); void increase_concurrency(); -- 2.20.1