Skip to content

Commit

Permalink
[basic.fundamental] remove redundant void conversion wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisenwave authored and tkoeppe committed Jul 29, 2024
1 parent aa4a13e commit 0711baa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5267,9 +5267,7 @@
A type \cv{}~\keyword{void}
is an incomplete type that cannot be completed; such a type has
an empty set of values. It is used as the return
type for functions that do not return a value. Any expression can be
explicitly converted to type
\cv{}~\keyword{void}\iref{expr.type.conv,expr.static.cast,expr.cast}.
type for functions that do not return a value.
An expression of type \cv{}~\keyword{void} shall
be used only as
\begin{itemize}
Expand All @@ -5281,7 +5279,8 @@
\item the operand of a \keyword{typeid} expression\iref{expr.typeid},
\item the operand of a \keyword{noexcept} operator\iref{expr.unary.noexcept},
\item the operand of a \keyword{decltype} specifier\iref{dcl.type.decltype}, or
\item the operand of an explicit conversion to type \cv{}~\keyword{void}.
\item the operand of an explicit conversion to type
\cv{}~\keyword{void}\iref{expr.type.conv,expr.static.cast,expr.cast}.
\end{itemize}

\pnum
Expand Down

0 comments on commit 0711baa

Please sign in to comment.