OSDN Git Service

2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jul 2004 15:56:21 +0000 (15:56 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jul 2004 15:56:21 +0000 (15:56 +0000)
PR c++/16169
* include/bits/basic_string.h (basic_string::operator=): Revert.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84296 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h

index 8919b56..17819c9 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR c++/16169
+       * include/bits/basic_string.h (basic_string::operator=): Revert.
+
 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
 
        * configure.ac (libtool_VERSION): To 6:2:0.
index a7290d7..7e6c669 100644 (file)
@@ -419,10 +419,7 @@ namespace std
        */
       basic_string&
       operator=(const basic_string& __str) 
-      { 
-       this->assign(__str); 
-       return *this;
-      }
+      { return this->assign(__str); }
 
       /**
        *  @brief  Copy contents of @a s into this string.
@@ -430,10 +427,7 @@ namespace std
        */
       basic_string&
       operator=(const _CharT* __s) 
-      { 
-       this->assign(__s); 
-       return *this;
-      }
+      { return this->assign(__s); }
 
       /**
        *  @brief  Set value to string of length 1.