]> AND Public Git Repository - simgrid.git/blobdiff - include/xbt/Extendable.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Delete now useless xbt_dynar_three_way_partition().
[simgrid.git] / include / xbt / Extendable.hpp
index 99c981d9477af3104767093acc2f62568df26459..5cf36a95252a2642e0fe56ee1fcc969fa4954d0d 100644 (file)
@@ -24,7 +24,7 @@ class Extension {
   friend class Extendable<T>;
   constexpr Extension(std::size_t id) : id_(id) {}
 public:
-  constexpr Extension() : id_(INVALID_ID) {}
+  explicit constexpr Extension() : id_(INVALID_ID) {}
   std::size_t id() const { return id_; }
   bool valid() { return id_ != INVALID_ID; }
 };
@@ -111,7 +111,6 @@ public:
     extension_set(rank.id(), value, use_dtor);
   }
 
-public:
   // Convenience extension access when the type has a associated EXTENSION ID:
   template<class U> U* extension()           { return extension<U>(U::EXTENSION_ID); }
   template<class U> void extension_set(U* p) { extension_set<U>(U::EXTENSION_ID, p); }