Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / container / string.hpp
index 46ca567..516b701 100644 (file)
@@ -712,7 +712,7 @@ class basic_string
       : base_t(a)
    {
       this->priv_terminate_string();
-      if(a == this->alloc()){
+      if(s.alloc() == this->alloc()){
          this->swap_data(s);
       }
       else{