Skip to content

Commit c3c40a3

Browse files
committed
[string.view.cons] Change "R" to "remove_reference_t<R>" in constraint.
The reference removal was omitted from P1989R2 accidentally. Without it, the entire constraint item would not apply when R is a reference type, even though it was clearly intended to cover that case.
1 parent d447003 commit c3c40a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/strings.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4309,7 +4309,8 @@
43094309
\tcode{d.operator ::std::basic_string_view<charT, traits>()}
43104310
is not a valid expression, and
43114311
\item
4312-
if the \grammarterm{qualified-id} \tcode{R::traits_type} is valid and denotes a type,
4312+
if the \grammarterm{qualified-id} \tcode{remove_reference_t<R>::traits_type}
4313+
is valid and denotes a type,
43134314
\tcode{is_same_v<remove_reference_t<R>::traits_type, traits>} is \tcode{true}.
43144315
\end{itemize}
43154316

0 commit comments

Comments
 (0)