Commit be62afb4 by Paolo Carlini Committed by Paolo Carlini

basic_string.h (_Rep::_M_set_length_and_sharable): Use, consistently, traits_type::assign.

2005-05-25  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.h (_Rep::_M_set_length_and_sharable):
	Use, consistently, traits_type::assign.

From-SVN: r100142
parent 910dc5cc
2005-05-25 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (_Rep::_M_set_length_and_sharable):
Use, consistently, traits_type::assign.
2005-05-25 Paolo Carlini <pcarlini@suse.de>
* config/cpu/alpha/atomicity.h: Use the builtins for
atomic memory operations.
* config/cpu/powerpc/atomicity.h: Likewise.
......
......@@ -198,7 +198,8 @@ namespace std
{
this->_M_set_sharable(); // One reference.
this->_M_length = __n;
this->_M_refdata()[__n] = _S_terminal; // grrr. (per 21.3.4)
traits_type::assign(this->_M_refdata()[__n], _S_terminal);
// grrr. (per 21.3.4)
// You cannot leave those LWG people alone for a second.
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment