View | Details | Raw Unified | Return to bug 40518 | Differences between
and this patch

Collapse All | Expand All | Context: (Patch / File /
)

(-)include/bits/basic_string.h (-6 / +11 lines)
 Lines 1-6    Link Here 
1
	{ 
1
	{
2
	  this->_M_set_sharable();  // One reference.
2
#ifndef _GLIBCXX_FULLY_DYNAMIC_STRING
3
	  this->_M_length = __n;
3
	  if (__builtin_expect(this != &_S_empty_rep(), false))
4
	  traits_type::assign(this->_M_refdata()[__n], _S_terminal);
4
#endif
5
	  // grrr. (per 21.3.4)
5
	    {
6
	  // You cannot leave those LWG people alone for a second.
6
	      this->_M_set_sharable();  // One reference.
7
	      this->_M_length = __n;
8
	      traits_type::assign(this->_M_refdata()[__n], _S_terminal);
9
	      // grrr. (per 21.3.4)
10
	      // You cannot leave those LWG people alone for a second.
11
	    }