tmp/tmpuq6486po/{from.md → to.md}
RENAMED
|
@@ -1,9 +1,19 @@
|
|
| 1 |
-
###
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
|
|
|
| 1 |
+
### [[dcl.dcl]]: declarations <a id="diff.cpp03.dcl.dcl">[[diff.cpp03.dcl.dcl]]</a>
|
| 2 |
+
|
| 3 |
+
**Change:** Remove `auto` as a storage class specifier. **Rationale:**
|
| 4 |
+
New feature. **Effect on original feature:** Valid C++03 code that uses
|
| 5 |
+
the keyword `auto` as a storage class specifier may be invalid in this
|
| 6 |
+
International Standard. In this International Standard, `auto` indicates
|
| 7 |
+
that the type of a variable is to be deduced from its initializer
|
| 8 |
+
expression.
|
| 9 |
+
|
| 10 |
+
**Change:** Narrowing restrictions in aggregate initializers.
|
| 11 |
+
**Rationale:** Catches bugs. **Effect on original feature:** Valid C++03
|
| 12 |
+
code may fail to compile in this International Standard. For example,
|
| 13 |
+
the following code is valid in C++03 but invalid in this International
|
| 14 |
+
Standard because `double` to `int` is a narrowing conversion:
|
| 15 |
+
|
| 16 |
+
``` cpp
|
| 17 |
+
int x[] = { 2.0 };
|
| 18 |
+
```
|
| 19 |
|