]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/lmm/maxmin.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Extract assignments from expressions.
[simgrid.git] / src / kernel / lmm / maxmin.hpp
index 7faf61ff0f96195a162c9e8bed62f833dacc9168..2ad066c67ed449dbcabe5ef509980dcb903cd203 100644 (file)
@@ -143,9 +143,11 @@ namespace lmm {
  */
 class XBT_PUBLIC Element {
 public:
+  // Use rule-of-three, and implicitely disable the move constructor which should be 'noexcept' according to C++ Core
+  // Guidelines.
   Element()               = default;
   Element(const Element&) = default;
-  Element(Element&&)      = delete;
+  ~Element()              = default;
 
   int get_concurrency() const;
   void decrease_concurrency();