PR libstdc++/79162 disambiguate assignment from string_view
authorJonathan Wakely <jwakely@redhat.com>
Tue, 14 Mar 2017 14:51:19 +0000 (14:51 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 14 Mar 2017 14:51:19 +0000 (14:51 +0000)
commit4f83482f4682c397c61d5edf60e39975d704d44e
treec0330af42a7929961e5bf69a771eaf9e4b6b40e2
parent9b74f93310e3c0ff495dd8fb15b547b28e9be506
PR libstdc++/79162 disambiguate assignment from string_view

PR libstdc++/79162
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
(basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
with a constrained template.
[!_GLIBCXX_USE_CXX11_ABI]
(basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
* testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
* testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.

From-SVN: r246128
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/testsuite/21_strings/basic_string/cons/char/79162.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/79162.cc [new file with mode: 0644]