]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Allow explicit conversion of string views with different traits
authorJonathan Wakely <jwakely@redhat.com>
Thu, 1 Feb 2024 21:40:33 +0000 (21:40 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 2 Feb 2024 10:18:04 +0000 (10:18 +0000)
commitf60d7e1c64518936797ec1009cb49f72f8fe45b9
treea5e7f01193531dfe47eae79ca7cecdafbea2be27
parent67f5a8c802463228da7c7bb2ab100095217560a6
libstdc++: Allow explicit conversion of string views with different traits

This was changed by LWG 3857.

libstdc++-v3/ChangeLog:

* include/std/string_view (basic_string_view(R&&)): Remove
constraint that traits_type must be the same, as per LWG 3857.
* testsuite/21_strings/basic_string_view/cons/char/range_c++20.cc:
Explicit conversion between different specializations should be
allowed.
* testsuite/21_strings/basic_string_view/cons/wchar_t/range_c++20.cc:
Likewise.
libstdc++-v3/include/std/string_view
libstdc++-v3/testsuite/21_strings/basic_string_view/cons/char/range_c++20.cc
libstdc++-v3/testsuite/21_strings/basic_string_view/cons/wchar_t/range_c++20.cc
This page took 0.054118 seconds and 5 git commands to generate.