Skip to content

Commit b3ac849

Browse files
eisenwavetkoeppe
authored andcommitted
CWG3101 Types "compounded" from other types
1 parent c6fa234 commit b3ac849

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

source/basic.tex

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5331,9 +5331,17 @@
53315331
layout-compatible standard-layout class types\iref{class.mem}.
53325332

53335333
\pnum
5334-
A type is \defn{consteval-only} if it is either
5335-
\tcode{std::meta::info} or
5336-
a type compounded from a consteval-only type\iref{basic.compound}.
5334+
A type is \defn{consteval-only} if it is
5335+
\begin{itemize}
5336+
\item \tcode{std::meta::info},
5337+
\item \cv{}~\tcode{T}, where \tcode{T} is a consteval-only type,
5338+
\item a pointer or reference to a consteval-only type,
5339+
\item an array of consteval-only type,
5340+
\item a function type having a return type or any parameter type that is consteval-only,
5341+
\item a class type with any non-static data member having consteval-only type, or
5342+
\item a type ``pointer to member of class \tcode{C} of type \tcode{T}'',
5343+
where at least one of \tcode{C} or \tcode{T} is a consteval-only type.
5344+
\end{itemize}
53375345
Every object of consteval-only type shall be
53385346
\begin{itemize}
53395347
\item

0 commit comments

Comments
 (0)