Inconsistency wrt Allocators in basic_string assignment (LWG2579)
authorNina Dinka Ranns <dinka.ranns@gmail.com>
Tue, 14 May 2019 11:48:31 +0000 (11:48 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 14 May 2019 11:48:31 +0000 (12:48 +0100)
commitdb33efde17932fb29fd08f19eaeef0e527adb065
treea59cec6e2335b171d4581888c383f4deae8ac866
parent4593483f15ca2a82049500b9434e736996bb0891
Inconsistency wrt Allocators in basic_string assignment (LWG2579)

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

Inconsistency wrt Allocators in basic_string assignment (LWG2579)
* include/bits/basic_string.h: (operator=(const basic_string&):
Move allocator decision to assign.
(assign(const basic_string&)): Move allocator decision here.
* testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
Add tests.
* testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
Add tests.

From-SVN: r271165
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/testsuite/21_strings/basic_string/allocator/char/copy_assign.cc
libstdc++-v3/testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc