File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 7254
7254
\end {note }
7255
7255
7256
7256
\pnum
7257
- A \grammarterm {braced-init-list} may appear on the right-hand side of
7257
+ A \grammarterm {braced-init-list} $ B$ may appear on the right-hand side of
7258
+
7258
7259
\begin {itemize }
7259
- \item an assignment to a scalar, in which case the initializer list shall have
7260
- at most a single element. The meaning of \tcode {x = \{ v\} }, where \tcode {T} is the
7261
- scalar type of the expression \tcode {x}, is that of \tcode {x = T\{ v\} }. The meaning of
7262
- \tcode {x = \{\} } is \tcode {x = T\{\} }.
7260
+ \item
7261
+ an assignment to a scalar of type \tcode {T}, in which case $ B$
7262
+ shall have at most a single element.
7263
+ The meaning of \tcode {x = $ B$ } is \tcode {x = t},
7264
+ where \tcode {t} is an invented temporary variable
7265
+ declared and initialized as \tcode {T t = $ B$ }.
7263
7266
7264
- \item an assignment to an object of class type, in which case the initializer
7265
- list is passed as the argument to the assignment operator function selected by
7267
+ \item
7268
+ an assignment to an object of class type, in which case $ B$
7269
+ is passed as the argument to the assignment operator function selected by
7266
7270
overload resolution\iref {over.ass,over.match }.
7267
7271
\end {itemize }
7272
+
7268
7273
\begin {example }
7269
7274
\begin {codeblock }
7270
7275
complex<double> z;
You can’t perform that action at this time.
0 commit comments