Skip to content

Commit 1739050

Browse files
committed
[dcl.attr.nodiscard] Make the constructor case better parallel the
function case by duplicating the implied "through a reachable declaration" wording.
1 parent 03bcd8d commit 1739050

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/declarations.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9026,7 +9026,8 @@
90269026
\item
90279027
an explicit type
90289028
conversion~(\ref{expr.static.cast}, \ref{expr.cast}, \ref{expr.type.conv})
9029-
that constructs an object through a constructor declared \tcode{nodiscard}, or
9029+
that constructs an object through
9030+
a constructor declared \tcode{nodiscard} in a reachable declaration, or
90309031
that initializes an object of a nodiscard type.
90319032
\end{itemize}
90329033

0 commit comments

Comments
 (0)