Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MC doesn'y like some of the explicit
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Wed, 14 Jun 2017 07:33:18 +0000 (09:33 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Wed, 14 Jun 2017 07:33:18 +0000 (09:33 +0200)
include/xbt/string.hpp
src/mc/LocationList.hpp

index f37e189..cafddcb 100644 (file)
@@ -89,7 +89,7 @@ public:
     }
   }
   string() : string (const_cast<char*>(&NUL), 0) {}
-  explicit string(const char* s) : string(s, strlen(s)) {}
+  string(const char* s) : string(s, strlen(s)) {}
   string(string const& s) : string(s.c_str(), s.size()) {}
   string(string&& s)
   {
@@ -98,7 +98,7 @@ public:
     s.string_data::len = 0;
     s.string_data::data = const_cast<char*>(&NUL);
   }
-  explicit string(std::string const& s) : string(s.c_str(), s.size()) {}
+  string(std::string const& s) : string(s.c_str(), s.size()) {}
 
   // Assign
   void assign(const char* s, size_t size)
@@ -165,7 +165,7 @@ public:
     return data()[i];
   }
   // Conversion
-  explicit operator std::string() const { return std::string(this->c_str(), this->size()); }
+  operator std::string() const { return std::string(this->c_str(), this->size()); }
 
   // Iterators
   iterator begin()               { return data(); }
index 01b695d..58b9fe2 100644 (file)
@@ -38,8 +38,7 @@ public:
   LocationListEntry(DwarfExpression expression, range_type range)
     : expression_(std::move(expression)), range_(range)
   {}
-  explicit LocationListEntry(DwarfExpression expression) : expression_(std::move(expression)), range_({0, UINT64_MAX})
-  {}
+  LocationListEntry(DwarfExpression expression) : expression_(std::move(expression)), range_({0, UINT64_MAX}) {}
 
   DwarfExpression& expression()
   {