File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 36663666\pnum
36673667An expression \tcode {e} can be explicitly converted to a type \tcode {T}
36683668if there is an implicit conversion sequence\iref {over.best.ics }
3669- from \tcode {e} to \tcode {T}, or
3669+ from \tcode {e} to \tcode {T},
36703670if overload resolution for a direct-initialization\iref {dcl.init }
36713671of an object or reference of type \tcode {T} from \tcode {e}
3672- would find at least one viable function\iref {over.match.viable }.
3672+ would find at least one viable function\iref {over.match.viable }, or
3673+ if \tcode {T} is an aggregate type\iref {dcl.init.aggr }
3674+ having a first element \tcode {x} and
3675+ there is an implicit conversion sequence
3676+ from \tcode {e} to the type of \tcode {x}.
36733677If \tcode {T} is a reference type, the effect is
36743678the same as performing the declaration and initialization
36753679\begin {codeblock }
36823686The conversion is ill-formed when attempting to convert an
36833687expression of class type to an inaccessible or ambiguous base class.
36843688\end {note }
3689+ \begin {note }
3690+ If \tcode {T} is `` array of unknown bound of \tcode {U}'' ,
3691+ this direct-initialization defines the type of the expression as \tcode {U[1]}.
3692+ \end {note }
36853693
36863694\pnum
36873695Otherwise, the \tcode {static_cast} shall perform one of the conversions
You can’t perform that action at this time.
0 commit comments