aboutsummaryrefslogtreecommitdiff
path: root/compile
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-01-16 17:15:26 +0000
committerJonathan Wakely <jwakely@redhat.com>2024-01-17 11:49:10 +0000
commit665a3ff1539ce24e1215e52a14450ecd9a26e87f (patch)
tree08492455d0e548dac0f3c920534b81c1e0e4ea4c /compile
parent3fd32d3d22d86ab732b9b997bdabe449b8c53bbe (diff)
downloadgcc-665a3ff1539ce24e1215e52a14450ecd9a26e87f.zip
gcc-665a3ff1539ce24e1215e52a14450ecd9a26e87f.tar.gz
gcc-665a3ff1539ce24e1215e52a14450ecd9a26e87f.tar.bz2
libstdc++: Do not use CTAD for _Utf32_view alias template
We were relying on P1814R0 (CTAD for alias templates) which isn't supported by Clang. We can just not use CTAD and provide an explicit template argument list for _Utf32_view. Ideally we'd define a deduction guide for _Grapheme_cluster_view that uses views::all_t to properly convert non-views to views, but all_t is defined in <ranges> and we don't want to include all of that in <bits/unicode.h>. So just make it require a view for now, which can be cheaply copied. Although it's not needed yet, it would also be more correct to specialize enable_borrowed_range for the views in <bits/unicode.h>. libstdc++-v3/ChangeLog: * include/bits/unicode.h (_Grapheme_cluster_view): Require view. Do not use CTAD for _Utf32_view. (__format_width, __truncate): Do not use CTAD. (enable_borrowed_range<_Utf_view<T, R>>): Define specialization. (enable_borrowed_range<_Grapheme_cluster_view<R>>): Likewise.
Diffstat (limited to 'compile')
0 files changed, 0 insertions, 0 deletions