tmp/tmponjst_f9/{from.md → to.md}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
## Deprecated `volatile` types <a id="depr.volatile.type">[[depr.volatile.type]]</a>
|
| 2 |
|
| 3 |
-
Postfix `++` and `
|
| 4 |
-
|
| 5 |
-
|
| 6 |
|
| 7 |
[*Example 1*:
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
volatile int velociraptor;
|
|
@@ -22,12 +22,11 @@ non-class type are deprecated; see [[expr.ass]].
|
|
| 22 |
int neck, tail;
|
| 23 |
volatile int brachiosaur;
|
| 24 |
brachiosaur = neck; // OK
|
| 25 |
tail = brachiosaur; // OK
|
| 26 |
tail = brachiosaur = neck; // deprecated
|
| 27 |
-
brachiosaur += neck; //
|
| 28 |
-
brachiosaur = brachiosaur + neck; // OK
|
| 29 |
```
|
| 30 |
|
| 31 |
— *end example*]
|
| 32 |
|
| 33 |
A function type [[dcl.fct]] with a parameter with volatile-qualified
|
|
|
|
| 1 |
## Deprecated `volatile` types <a id="depr.volatile.type">[[depr.volatile.type]]</a>
|
| 2 |
|
| 3 |
+
Postfix `++` and `--` expressions [[expr.post.incr]] and prefix `++` and
|
| 4 |
+
`--` expressions [[expr.pre.incr]] of volatile-qualified arithmetic and
|
| 5 |
+
pointer types are deprecated.
|
| 6 |
|
| 7 |
[*Example 1*:
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
volatile int velociraptor;
|
|
|
|
| 22 |
int neck, tail;
|
| 23 |
volatile int brachiosaur;
|
| 24 |
brachiosaur = neck; // OK
|
| 25 |
tail = brachiosaur; // OK
|
| 26 |
tail = brachiosaur = neck; // deprecated
|
| 27 |
+
brachiosaur += neck; // OK
|
|
|
|
| 28 |
```
|
| 29 |
|
| 30 |
— *end example*]
|
| 31 |
|
| 32 |
A function type [[dcl.fct]] with a parameter with volatile-qualified
|