basic_string.tcc (insert(size_type, const _CharT*, size_type __n)): Fix length_error...
authorPaolo Carlini <pcarlini@suse.de>
Sat, 24 Jan 2004 00:27:19 +0000 (00:27 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 24 Jan 2004 00:27:19 +0000 (00:27 +0000)
commit251804e635b396f63548b40c20a8f8b324b49813
treeb177e0b4f463c6e528ec70ab9f678a7e3cf00115
parentfa2f03062ceea0c62d4b1f09bc0bdb5067d52c27
basic_string.tcc (insert(size_type, const _CharT*, size_type __n)): Fix length_error check.

2004-01-23  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_string.tcc (insert(size_type,
const _CharT*, size_type __n)): Fix length_error check.
(replace(size_type, size_type, const _CharT*, size_type):
Ditto; call _M_replace_safe.
(_M_replace_aux(size_type, size_type, size_type, _CharT):
Fix length_error check.
(_M_replace(iterator, iterator, _InputIterator,
_InputIterator)): Ditto, tweak.
(_M_replace_safe(size_type, size_type, const _CharT*,
size_type)): Remove length_error check.

* include/bits/basic_string.tcc (append(const basic_string&),
append(const basic_string&, size_type, size_type)): Tweak
comment.

* include/bits/basic_string.tcc (copy(_CharT*, size_type,
size_type)): If __n == 0 don't call traits::copy.

From-SVN: r76476
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.tcc