OSDN Git Service

2010-01-08 Paolo Carlini <paolo.carlini@oracle.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / include / profile / deque
index d0859a4..12f45d6 100644 (file)
@@ -102,9 +102,12 @@ namespace __profile
       deque&
       operator=(deque&& __x)
       {
-        // NB: DR 675.
-       this->clear();
-       this->swap(__x);          
+       if (this != &__x)
+         {
+           // NB: DR 675.
+           this->clear();
+           this->swap(__x);
+         }  
        return *this;
       }