Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Delete the implicitely defined move constructor.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 14 Apr 2021 11:22:58 +0000 (13:22 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 14 Apr 2021 19:09:56 +0000 (21:09 +0200)
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

index d2dae46..7faf61f 100644 (file)
@@ -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();