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

Public GIT Repository
do not store name in s4u::Disk
[simgrid.git] / src / kernel / lmm / maxmin.hpp
index 3a140f20ffc72ef670eda686ea1cbfce7acf0730..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&& that) noexcept : Element(that) {}
+  ~Element()              = default;
 
   int get_concurrency() const;
   void decrease_concurrency();