-/* Copyright (c) 2015-2018. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2015-2019. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
}
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)