From Jason Turner

[diff.cpp03.dcl.dcl]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpuq6486po/{from.md → to.md} +18 -8
tmp/tmpuq6486po/{from.md → to.md} RENAMED
@@ -1,9 +1,19 @@
1
- ### Clause [[dcl.dcl]]: declarations <a id="diff.cpp03.dcl.dcl">[[diff.cpp03.dcl.dcl]]</a>
2
-
3
- [[dcl.spec]] **Change:** Remove `auto` as a storage class specifier.
4
- **Rationale:** New feature. **Effect on original feature:** Valid
5
- C++03code that uses the keyword `auto` as a storage class specifier may
6
- be invalid in this International Standard. In this International
7
- Standard, `auto` indicates that the type of a variable is to be deduced
8
- from its initializer expression.
 
 
 
 
 
 
 
 
 
 
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