r270953 - in /trunk/libstdc++-v3: ChangeLog inc...

redi@gcc.gnu.org redi@gcc.gnu.org
Tue May 7 15:30:00 GMT 2019


Author: redi
Date: Tue May  7 15:30:46 2019
New Revision: 270953

URL: https://gcc.gnu.org/viewcvs?rev=270953&root=gcc&view=rev
Log:
Make allocator propagation more consistent for operator+(basic_string) (P1165R1)

2019-05-01  Nina Dinka Ranns  <dinka.ranns@gmail.com>

	Make allocator propagation more consistent for
	operator+(basic_string) (P1165R1)
	* include/bits/basic_string.h
	(operator+(basic_string&&, basic_string&&): Changed resulting
	allocator to always be the one from the first parameter.
	* include/bits/basic_string.tcc
	(operator+(const _CharT*, const basic_string&)): Changed
	resulting allocator to be SOCCC on the second parameter's allocator.
	(operator+(_CharT, const basic_string&)): Likewise.
	* testsuite/21_strings/basic_string/allocator/char/operator_plus.cc:
	New.
	* testsuite/21_strings/basic_string/allocator/wchar_t/operator_plus.cc:
	New.

Added:
    trunk/libstdc++-v3/testsuite/21_strings/basic_string/allocator/char/operator_plus.cc
    trunk/libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/operator_plus.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/basic_string.h
    trunk/libstdc++-v3/include/bits/basic_string.tcc



More information about the Libstdc++-cvs mailing list