tmp/tmpxey_apsk/{from.md → to.md}
RENAMED
|
@@ -45,10 +45,26 @@ these identifiers is invalid in this International Standard.
|
|
| 45 |
[[lex.icon]] **Change:** Type of integer literals **Rationale:** C99
|
| 46 |
compatibility. **Effect on original feature:** Certain integer literals
|
| 47 |
larger than can be represented by `long` could change from an unsigned
|
| 48 |
integer type to `signed long long`.
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
### Clause [[expr]]: expressions <a id="diff.cpp03.expr">[[diff.cpp03.expr]]</a>
|
| 51 |
|
| 52 |
[[expr.mul]] **Change:** Specify rounding for results of integer `/` and
|
| 53 |
`%` **Rationale:** Increase portability, C99 compatibility. **Effect on
|
| 54 |
original feature:** Valid C++03code that uses integer division rounds
|
|
|
|
| 45 |
[[lex.icon]] **Change:** Type of integer literals **Rationale:** C99
|
| 46 |
compatibility. **Effect on original feature:** Certain integer literals
|
| 47 |
larger than can be represented by `long` could change from an unsigned
|
| 48 |
integer type to `signed long long`.
|
| 49 |
|
| 50 |
+
### Clause [[conv]]: standard conversions <a id="diff.cpp03.conv">[[diff.cpp03.conv]]</a>
|
| 51 |
+
|
| 52 |
+
[[conv.ptr]] **Change:** Only literals are integer null pointer
|
| 53 |
+
constants **Rationale:** Removing surprising interactions with templates
|
| 54 |
+
and constant expressions **Effect on original feature:** Valid C++03code
|
| 55 |
+
may fail to compile or produce different results in this International
|
| 56 |
+
Standard, as the following example illustrates:
|
| 57 |
+
|
| 58 |
+
``` cpp
|
| 59 |
+
void f(void *); // #1
|
| 60 |
+
void f(...); // #2
|
| 61 |
+
template<int N> void g() {
|
| 62 |
+
f(0*N); // calls #2; used to call #1
|
| 63 |
+
}
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
### Clause [[expr]]: expressions <a id="diff.cpp03.expr">[[diff.cpp03.expr]]</a>
|
| 67 |
|
| 68 |
[[expr.mul]] **Change:** Specify rounding for results of integer `/` and
|
| 69 |
`%` **Rationale:** Increase portability, C99 compatibility. **Effect on
|
| 70 |
original feature:** Valid C++03code that uses integer division rounds
|