OSDN Git Service

2005-12-10 Paolo Carlini <pcarlini@suse.de>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / include / ext / vstring.h
index 4a52285..1c59e71 100644 (file)
@@ -1665,6 +1665,9 @@ namespace __gnu_cxx
       int
       compare(const __versa_string& __str) const
       {
+       if (this->_M_compare(__str))
+         return 0;
+
        const size_type __size = this->size();
        const size_type __osize = __str.size();
        const size_type __len = std::min(__size, __osize);