* include/bits/basic_string.h (_Rep::_M_set_length_and_sharable):
Use, consistently, traits_type::assign.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100142
138bc75d-0d04-0410-961f-
82ee72b054a4
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.
{
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.
}