A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Please sonar
[simgrid.git]
/
include
/
xbt
/
string.hpp
diff --git
a/include/xbt/string.hpp
b/include/xbt/string.hpp
index
cd51303
..
5a393ec
100644
(file)
--- a/
include/xbt/string.hpp
+++ b/
include/xbt/string.hpp
@@
-121,7
+121,8
@@
public:
}
string& operator=(string const& s)
{
- assign(s.c_str(), s.size());
+ if (this != &s)
+ assign(s.c_str(), s.size());
return *this;
}
string& operator=(std::string const& s)