basic_string.h (replace(__pos, __n1, __s, __n2): Fix and tighten __throw_length_error check.

2002-04-26  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/basic_string.h (replace(__pos, __n1, __s, __n2):
	Fix and tighten __throw_length_error check.
	* testsuite/21_strings/replace.cc (test05): New.
	* testsuite/21_strings/replace.cc (test02, test03, test04): Tweak.

From-SVN: r52797
This commit is contained in:
Paolo Carlini 2002-04-26 20:21:32 +02:00 committed by Paolo Carlini
parent bde3c0c07d
commit adf2e3e668
3 changed files with 26 additions and 2 deletions