Skip to content

Commit 1984951

Browse files
committed
[meta.type.trans] Strike redundant and confusing note on type member of
basic_common_reference, and replace it with a clarifying description of the primary template.
1 parent a5a086f commit 1984951

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

source/utilities.tex

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16995,12 +16995,8 @@
1699516995
\tcode{struct}
1699616996
\hspace*{2ex}\tcode{basic_common_reference;}
1699716997
&
16998-
A program may specialize this trait (as specified in Note D, below). If there
16999-
is a member \tcode{type}, it shall be a \grammarterm{typedef-name}.
17000-
\begin{note}
17001-
Such specializations can be used to influence the result of
17002-
\tcode{common_reference}.
17003-
\end{note} \\ \rowsep
16998+
Unless this trait is specialized (as specified in Note D, below),
16999+
there shall be no member \tcode{type}. \\ \rowsep
1700417000

1700517001
\indexlibrary{\idxcode{common_reference}}%
1700617002
\tcode{template<class... T>} \tcode{struct common_reference;}
@@ -17076,7 +17072,7 @@
1707617072
\tcode{const volatile short}.
1707717073
\end{example}
1707817074
\item \tcode{\placeholdernc{COND_RES}(X, Y)} be
17079-
\tcode{decltype(false ? declval<X(\&)()>()() : declval<Y(\&)()>()())}.
17075+
\tcode{decltype(false ?\ declval<X(\&)()>()() :\ declval<Y(\&)()>()())}.
1708017076
\end{itemize}
1708117077
Given types \tcode{A} and \tcode{B},
1708217078
let \tcode{X} be \tcode{remove_reference_t<A>},
@@ -17233,7 +17229,9 @@
1723317229
\tcode{is_same_v<T, decay_t<T>{>}} and
1723417230
\tcode{is_same_v<U, decay_t<U>{>}} are each \tcode{true}.
1723517231
\begin{note}
17236-
Such specializations are needed when only explicit conversions are desired
17232+
Such specializations
17233+
can be used to influence the result of \tcode{common_reference}, and
17234+
are needed when only explicit conversions are desired
1723717235
between the template arguments.
1723817236
\end{note}
1723917237
Such a specialization need not have a member named \tcode{type}, but if it does,

0 commit comments

Comments
 (0)