gcc/libstdc++-v3/testsuite/27_io/basic_stringstream
Jonathan Wakely 16c067fa4a PR libstdc++/81338 correctly manage string capacity
Backport from mainline
2017-07-10  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/81338
	* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
	Declare basic_stringbuf to be a friend.
	* include/bits/sstream.tcc (basic_stringbuf::overflow)
	[_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
	* include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
	length to buffer length.
	* testsuite/27_io/basic_stringstream/assign/81338.cc: New.

From-SVN: r251652
2017-09-04 13:24:33 +01:00
..
assign PR libstdc++/81338 correctly manage string capacity 2017-09-04 13:24:33 +01:00
cons Update copyright years. 2017-01-01 13:07:43 +01:00
rdbuf Update copyright years. 2017-01-01 13:07:43 +01:00
requirements Update copyright years. 2017-01-01 13:07:43 +01:00
str Update copyright years. 2017-01-01 13:07:43 +01:00