basic_string.tcc (operator+(const _CharT*, const basic_string&)): No need to go throu...
authorPaolo Carlini <pcarlini@suse.de>
Sat, 24 Jan 2004 18:54:23 +0000 (18:54 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 24 Jan 2004 18:54:23 +0000 (18:54 +0000)
2004-01-24  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_string.tcc (operator+(const _CharT*,
const basic_string&)): No need to go through the append
taking two iterators.

From-SVN: r76517

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

index 1dafb097e8614dca579786bb76075e6e4f55528a..e7fe103b60c9408ff277c53d2e78089d76a83c2b 100644 (file)
@@ -1,3 +1,9 @@
+2004-01-24  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/basic_string.tcc (operator+(const _CharT*,
+       const basic_string&)): No need to go through the append
+       taking two iterators.
+
 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
index 860604405259faf5f9f0e484c90edc2bd05bb400..143c2bae3df15c2957b9e0f13263dbf7ff81eee6 100644 (file)
@@ -683,7 +683,7 @@ namespace std
       const __size_type __len = _Traits::length(__lhs);
       __string_type __str;
       __str.reserve(__len + __rhs.size());
-      __str.append(__lhs, __lhs + __len);
+      __str.append(__lhs, __len);
       __str.append(__rhs);
       return __str;
     }