diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-02-01 11:41:48 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-02-01 11:41:48 +0000 |
commit | 11d10beb5762c48de90a004368df2c2863b33d7a (patch) | |
tree | aab5154423488af538040a2d8a5b37c2dcb566bb /gcc | |
parent | a0deb9925478be3738a87f40902c829d867f8f79 (diff) | |
download | gcc-11d10beb5762c48de90a004368df2c2863b33d7a.zip gcc-11d10beb5762c48de90a004368df2c2863b33d7a.tar.gz gcc-11d10beb5762c48de90a004368df2c2863b33d7a.tar.bz2 |
PR libstdc++/79254 simplify exception-safety in copy assignment
PR libstdc++/79254
* config/abi/pre/gnu.ver: Remove recently added symbols.
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
(basic_string::_M_copy_assign): Remove.
(basic_string::operator=(const basic_string&)): Don't dispatch to
_M_copy_assign. If source object is small just deallocate, otherwise
perform new allocation before making any changes.
* include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
(basic_string::_M_copy_assign(const basic_string&, true_type)):
Remove.
* testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
Test cases where the allocators are equal or the string is small.
* testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
Likewise.
From-SVN: r245085
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions