Skip to content

Commit ef2b72c

Browse files
committed
CWG2941 Lifetime extension for function-style cast to reference type
1 parent 50a457a commit ef2b72c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/basic.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4837,6 +4837,15 @@
48374837
to a glvalue that refers
48384838
to the object designated by the operand, or
48394839
to its complete object or a subobject thereof,
4840+
\item
4841+
an explicit type conversion (functional notation)\iref{expr.type.conv}
4842+
to a reference type whose initializer is a \grammarterm{braced-init-list}
4843+
where the reference is
4844+
\begin{itemize}
4845+
\item bound directly to the glvalue result of one of these expressions
4846+
(necessarily the sole element of the \grammarterm{braced-init-list}) or
4847+
\item bound to the result of a temporary materialization conversion,
4848+
\end{itemize}
48404849
\item
48414850
a conditional expression\iref{expr.cond} that is a glvalue
48424851
where the second or third operand is one of these expressions, or

0 commit comments

Comments
 (0)