Skip to content

Commit

Permalink
[tuple.helper] Paragraph 1 not universally true (cplusplus#6777)
Browse files Browse the repository at this point in the history
[tuple.helper] p1 defines a general requirement that all specializations of `tuple_size`
shall meet the *Cpp17UnaryTypeTrait* requirements, but p4 actually defines a
special situation where this requirement is not met ("Otherwise, it has no member value").
We have the same seemingly contradiction in [depr.tuple] p2. For clarity, we should
point out that this provision is not universal.
  • Loading branch information
Dani-Hub authored Jan 21, 2024
1 parent 2055c2f commit 8410aac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2730,7 +2730,8 @@

\begin{itemdescr}
\pnum
All specializations of \tcode{tuple_size} meet the
Except where specified otherwise,
all specializations of \tcode{tuple_size} meet the
\oldconcept{UnaryTypeTrait} requirements\iref{meta.rqmts} with a
base characteristic of \tcode{integral_constant<size_t, N>}
for some \tcode{N}.
Expand Down

0 comments on commit 8410aac

Please sign in to comment.