* include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
Adjust bit missing from the previous commit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89532
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
// 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;
}