basic_string.tcc (assign(const _CharT*, size_type)): Adjust bit missing from the...
authorPaolo Carlini <pcarlini@suse.de>
Mon, 25 Oct 2004 10:43:59 +0000 (10:43 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 25 Oct 2004 10:43:59 +0000 (10:43 +0000)
2004-10-25  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
Adjust bit missing from the previous commit.

From-SVN: r89532

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

index 46311ca..51f3932 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-25  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
+       Adjust bit missing from the previous commit.
+
 2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR other/18138
index 4063497..51fe9f5 100644 (file)
@@ -253,9 +253,9 @@ namespace std
          // Work in-place.
          const size_type __pos = __s - _M_data();
          if (__pos >= __n)
-           traits_type::copy(_M_data(), __s, __n);
+           _M_copy(_M_data(), __s, __n);
          else if (__pos)
-           traits_type::move(_M_data(), __s, __n);
+           _M_move(_M_data(), __s, __n);
          _M_rep()->_M_set_length_and_sharable(__n);
          return *this;
        }