Skip to content

Commit 6c4806f

Browse files
jensmaurerzygoloid
authored andcommitted
[span.cons] Rephrase constraint on input element type to avoid
overfull \hbox.
1 parent d2a42fb commit 6c4806f

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

source/containers.tex

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10676,13 +10676,11 @@
1067610676
\begin{itemdescr}
1067710677
\pnum
1067810678
\constraints
10679+
Let \tcode{U} be \tcode{remove_reference_t<iter_reference_t<It>>}.
1067910680
\begin{itemize}
1068010681
\item \tcode{It} satisfies \libconcept{contiguous_iterator}.
1068110682
\item
10682-
\begin{codeblock}
10683-
{is_convertible_v<remove_reference_t<iter_reference_t<It>>(*)[], element_type(*)[]>
10684-
\end{codeblock}
10685-
is \tcode{true}.
10683+
\tcode{is_convertible_v<U(*)[], element_type(*)[]>} is \tcode{true}.
1068610684
\begin{note}
1068710685
The intent is to allow only qualification conversions
1068810686
of the iterator reference type to \tcode{element_type}.
@@ -10718,12 +10716,10 @@
1071810716
\begin{itemdescr}
1071910717
\pnum
1072010718
\constraints
10719+
Let \tcode{U} be \tcode{remove_reference_t<iter_reference_t<It>>}.
1072110720
\begin{itemize}
1072210721
\item
10723-
\begin{codeblock}
10724-
is_convertible_v<remove_reference_t<iter_reference_t<It>>(*)[], element_type(*)[]>
10725-
\end{codeblock}
10726-
is \tcode{true}.
10722+
\tcode{is_convertible_v<U(*)[], element_type(*)[]>} is \tcode{true}.
1072710723
\begin{note}
1072810724
The intent is to allow only qualification conversions
1072910725
of the iterator reference type to \tcode{element_type}.
@@ -10785,6 +10781,7 @@
1078510781
\begin{itemdescr}
1078610782
\pnum
1078710783
\constraints
10784+
Let \tcode{U} be \tcode{remove_reference_t<ranges::range_reference_t<R>>}.
1078810785
\begin{itemize}
1078910786
\item \tcode{extent == dynamic_extent} is \tcode{true}.
1079010787
\item \tcode{R} satisfies \tcode{ranges::\libconcept{contiguous_range}} and
@@ -10794,11 +10791,8 @@
1079410791
\item \tcode{remove_cvref_t<R>} is not a specialization of \tcode{span}.
1079510792
\item \tcode{remove_cvref_t<R>} is not a specialization of \tcode{array}.
1079610793
\item \tcode{is_array_v<remove_cvref_t<R>>} is \tcode{false}.
10797-
\item\relax
10798-
\begin{codeblock}
10799-
is_convertible_v<remove_reference_t<ranges::range_reference_t<R>>(*)[], element_type(*)[]>
10800-
\end{codeblock}
10801-
is \tcode{true}.
10794+
\item
10795+
\tcode{is_convertible_v<U(*)[], element_type(*)[]>} is \tcode{true}.
1080210796
\begin{note}
1080310797
The intent is to allow only qualification conversions
1080410798
of the iterator reference type to \tcode{element_type}.
@@ -10874,7 +10868,7 @@
1087410868

1087510869
\indexlibrary{\idxcode{span}!deduction guide}%
1087610870
\begin{itemdecl}
10877-
template <class It, class End>
10871+
template<class It, class End>
1087810872
span(It, End) -> span<remove_reference_t<iter_reference_t<It>>>;
1087910873
\end{itemdecl}
1088010874

0 commit comments

Comments
 (0)