tmp/tmp4hnecqw1/{from.md → to.md}
RENAMED
|
@@ -24,13 +24,5 @@ char *c = (char *) b;
|
|
| 24 |
|
| 25 |
This is fairly widely used but it is good programming practice to add
|
| 26 |
the cast when assigning pointer-to-void to pointer-to-object. Some ISO C
|
| 27 |
translators will give a warning if the cast is not used.
|
| 28 |
|
| 29 |
-
[[conv.ptr]] **Change:** Only pointers to non-const and non-volatile
|
| 30 |
-
objects may be implicitly converted to `void*` **Rationale:** This
|
| 31 |
-
improves type safety. **Effect on original feature:** Deletion of
|
| 32 |
-
semantically well-defined feature. Could be automated. A C program
|
| 33 |
-
containing such an implicit conversion from, e.g.,
|
| 34 |
-
pointer-to-const-object to void\* will receive a diagnostic message. The
|
| 35 |
-
correction is to add an explicit cast. Seldom.
|
| 36 |
-
|
|
|
|
| 24 |
|
| 25 |
This is fairly widely used but it is good programming practice to add
|
| 26 |
the cast when assigning pointer-to-void to pointer-to-object. Some ISO C
|
| 27 |
translators will give a warning if the cast is not used.
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|