Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Declare move constructors with "noexcept".
[simgrid.git] / include / xbt / string.hpp
index 89311f0..99520e6 100644 (file)
@@ -89,7 +89,7 @@ public:
   string() : string(&NUL, 0) {}
   explicit string(const char* s) : string(s, strlen(s)) {}
   string(string const& s) : string(s.c_str(), s.size()) {}
-  string(string&& s) : str(std::move(s.str))
+  string(string&& s) noexcept : str(std::move(s.str))
   {
     s.str.len  = 0;
     s.str.data = &NUL;