basic_string.tcc (assign(const _CharT*, size_type)): Adjust bit missing from the previous commit.
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
This commit is contained in:
parent
1e02510f05
commit
d87bdb1330
@ -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>
|
2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
|
||||||
|
|
||||||
PR other/18138
|
PR other/18138
|
||||||
|
@ -253,9 +253,9 @@ namespace std
|
|||||||
// Work in-place.
|
// Work in-place.
|
||||||
const size_type __pos = __s - _M_data();
|
const size_type __pos = __s - _M_data();
|
||||||
if (__pos >= __n)
|
if (__pos >= __n)
|
||||||
traits_type::copy(_M_data(), __s, __n);
|
_M_copy(_M_data(), __s, __n);
|
||||||
else if (__pos)
|
else if (__pos)
|
||||||
traits_type::move(_M_data(), __s, __n);
|
_M_move(_M_data(), __s, __n);
|
||||||
_M_rep()->_M_set_length_and_sharable(__n);
|
_M_rep()->_M_set_length_and_sharable(__n);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user