Skip to content
Snippets Groups Projects
Commit acbab5bf authored by Paolo Carlini's avatar Paolo Carlini Committed by Paolo Carlini
Browse files

basic_string.h (c_str()): Simplify, due to 21.3.4 the internal representation...

basic_string.h (c_str()): Simplify, due to 21.3.4 the internal representation is always kept null-terminated.

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

	* include/bits/basic_string.h (c_str()): Simplify, due to
	21.3.4 the internal representation is always kept null-terminated.
	* include/bits/basic_string.tcc (_M_clone): Null-terminate.
	* testsuite/21_strings/basic_string/element_access/char/4.cc: New.
	* testsuite/21_strings/basic_string/element_access/wchar_t/4.cc: Ditto.

From-SVN: r76092
parent 9c96a689
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment