X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e7ed5c2b6591b15f84e36d4e469f11a90c26308c..d72f72ef5d69c200c6679e1eb5dc047705d7c1f2:/include/xbt/string.hpp diff --git a/include/xbt/string.hpp b/include/xbt/string.hpp index 87ea38383e..a8bd3176fe 100644 --- a/include/xbt/string.hpp +++ b/include/xbt/string.hpp @@ -145,7 +145,7 @@ public: // Capacity size_t size() const { return str.len; } size_t length() const { return str.len; } - bool empty() const { return str.len != 0; } + bool empty() const { return str.len == 0; } void shrink_to_fit() { /* Being there, but doing nothing */} // Element access