Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[DVFS] Add several new member vars for new features
[simgrid.git] / include / xbt / string.hpp
index 1916178d895e504d81a4c7117b991785ed495425..0cc1c4899acaed65078974ab244be57feb94465b 100644 (file)
@@ -89,7 +89,7 @@ public:
     }
   }
   string() : string(&NUL, 0) {}
-  string(const char* s) : string(s, strlen(s)) {}
+  explicit string(const char* s) : string(s, strlen(s)) {}
   string(string const& s) : string(s.c_str(), s.size()) {}
   string(string&& s)
   {