PR libstdc++/58265 add noexcept to basic_string::assign(basic_string&&)
authorJonathan Wakely <jwakely@redhat.com>
Thu, 5 Jul 2018 17:03:05 +0000 (18:03 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 5 Jul 2018 17:03:05 +0000 (18:03 +0100)
commit30236791e04a08c3a7edc49f00af4c63c4cb6a9d
tree17f335ab5f2cf676bd0884f260dbc0267d65cd90
parent99d2293dbfa03ddc5b0308858412ddded4c832a8
PR libstdc++/58265 add noexcept to basic_string::assign(basic_string&&)

PR libstdc++/58265
* include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
(basic_string::assign(basic_string&&)): Add conditional noexcept
depending on the allocator's is_always_equal property (LWG 2063).
* testsuite/21_strings/basic_string/modifiers/assign/char/
move_assign.cc: Check for non-throwing exception specification.
* testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
move_assign.cc: Likewise.

From-SVN: r262447
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/char/move_assign.cc
libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/wchar_t/move_assign.cc