tmp/tmpr66in9n0/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Comma operator in subscript expressions <a id="depr.comma.subscript">[[depr.comma.subscript]]</a>
|
| 2 |
+
|
| 3 |
+
A comma expression [[expr.comma]] appearing as the
|
| 4 |
+
*expr-or-braced-init-list* of a subscripting expression [[expr.sub]] is
|
| 5 |
+
deprecated.
|
| 6 |
+
|
| 7 |
+
[*Note 1*: A parenthesized comma expression is not
|
| 8 |
+
deprecated. — *end note*]
|
| 9 |
+
|
| 10 |
+
[*Example 1*:
|
| 11 |
+
|
| 12 |
+
``` cpp
|
| 13 |
+
void f(int *a, int b, int c) {
|
| 14 |
+
a[b,c]; // deprecated
|
| 15 |
+
a[(b,c)]; // OK
|
| 16 |
+
}
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
— *end example*]
|
| 20 |
+
|