File tree Expand file tree Collapse file tree 2 files changed +10
-22
lines changed Expand file tree Collapse file tree 2 files changed +10
-22
lines changed Original file line number Diff line number Diff line change 281
281
\change The result of a conditional expression, an assignment expression, or a comma expression may be an lvalue.
282
282
\rationale
283
283
\Cpp {} is an object-oriented language, placing relatively
284
- more emphasis on lvalues. For example, functions may
285
- return lvalues.
284
+ more emphasis on lvalues. For example, function calls may
285
+ yield lvalues.
286
286
\effect
287
287
Change to semantics of well-defined feature. Some C
288
288
expressions that implicitly rely on lvalue-to-rvalue
Original file line number Diff line number Diff line change 1271
1271
\tcode {T}
1272
1272
or is a derived class thereof
1273
1273
are candidate functions.
1274
- Conversion functions that return `` reference to
1275
- \tcode {X}''
1276
- return
1277
- lvalues or xvalues, depending on the type of reference, of type
1278
- \tcode {X}
1279
- and are therefore considered to yield
1280
- \tcode {X}
1281
- for this
1282
- process of selecting candidate functions.
1274
+ A call to a conversion function returning `` reference to \tcode {X}''
1275
+ is a glvalue of type \tcode {X}, and such a conversion function is
1276
+ therefore considered to yield \tcode {X} for this process of selecting
1277
+ candidate functions.
1283
1278
\end {itemize }
1284
1279
1285
1280
\pnum
1330
1325
Conversion functions that return a cv-qualified type
1331
1326
are considered to yield the cv-unqualified version of that type
1332
1327
for this process of selecting candidate functions.
1333
- Conversion functions that return `` reference to
1334
- \cvqual {cv2}
1335
- \tcode {X}''
1336
- return
1337
- lvalues or xvalues, depending on the type of reference, of type
1338
- `` \cvqual {cv2}
1339
- \tcode {X}''
1340
- and are therefore considered to yield
1341
- \tcode {X}
1342
- for this
1343
- process of selecting candidate functions.
1328
+ A call to a conversion function returning `` reference to \tcode {X}''
1329
+ is a glvalue of type \tcode {X}, and such a conversion function is
1330
+ therefore considered to yield \tcode {X} for this process of selecting
1331
+ candidate functions.
1344
1332
\end {itemize }
1345
1333
1346
1334
\pnum
You can’t perform that action at this time.
0 commit comments