libstdc++: Fix fully-dynamic-string build
authorJonathan Wakely <jwakely@redhat.com>
Tue, 30 Nov 2021 12:54:10 +0000 (12:54 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 30 Nov 2021 23:10:03 +0000 (23:10 +0000)
commit675afa21244d58640876da3287d303e376a3b59a
tree7391a3e9a81328161eba6ad3da42aeef96fa18d3
parent56b07badf052fb140c4636f6d77cfc02d1ac357c
libstdc++: Fix fully-dynamic-string build

My last change to the fully-dynamic-string actually broke it. This fixes
the move constructor so it builds, and simplifies it slightly so that
more code is common between the fully-dynamic enabled/disabled cases.

libstdc++-v3/ChangeLog:

* include/bits/cow_string.h (basic_string(basic_string&&)): Fix
mem-initializer for _GLIBCXX_FULLY_DYNAMIC_STRING==0 case.
* testsuite/21_strings/basic_string/cons/char/noexcept_move_construct.cc:
Remove outdated comment.
* testsuite/21_strings/basic_string/cons/wchar_t/noexcept_move_construct.cc:
Likewise.
libstdc++-v3/include/bits/cow_string.h
libstdc++-v3/testsuite/21_strings/basic_string/cons/char/noexcept_move_construct.cc
libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/noexcept_move_construct.cc