Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add "explicit" keyword.
[simgrid.git] / src / mc / compare.cpp
index 6416733..f5c1a62 100644 (file)
@@ -26,7 +26,7 @@ public:
   int fragment_ = 0;
 
   HeapLocation() = default;
-  HeapLocation(int block, int fragment = 0) : block_(block), fragment_(fragment) {}
+  explicit HeapLocation(int block, int fragment = 0) : block_(block), fragment_(fragment) {}
 
   bool operator==(HeapLocation const& that) const
   {