tmp/tmpxc8vkhnp/{from.md → to.md}
RENAMED
|
@@ -1,30 +1,28 @@
|
|
| 1 |
-
###
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
Standard.
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
|
| 19 |
``` cpp
|
| 20 |
template <class T> struct X { };
|
| 21 |
template <int N> struct Y { };
|
| 22 |
X< Y< 1 >> 2 > > x;
|
| 23 |
```
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
Standard.
|
| 30 |
|
|
|
|
| 1 |
+
### [[temp]]: templates <a id="diff.cpp03.temp">[[diff.cpp03.temp]]</a>
|
| 2 |
|
| 3 |
+
**Change:** Remove `export`. **Rationale:** No implementation consensus.
|
| 4 |
+
**Effect on original feature:** A valid C++03 declaration containing
|
| 5 |
+
`export` is ill-formed in this International Standard.
|
|
|
|
| 6 |
|
| 7 |
+
**Change:** Remove whitespace requirement for nested closing template
|
| 8 |
+
right angle brackets. **Rationale:** Considered a persistent but minor
|
| 9 |
+
annoyance. Template aliases representing non-class types would
|
| 10 |
+
exacerbate whitespace issues. **Effect on original feature:** Change to
|
| 11 |
+
semantics of well-defined expression. A valid C++03 expression
|
| 12 |
+
containing a right angle bracket (“`>`”) followed immediately by another
|
| 13 |
+
right angle bracket may now be treated as closing two templates. For
|
| 14 |
+
example, the following code is valid in C++03 because “`>>`” is a
|
| 15 |
+
right-shift operator, but invalid in this International Standard because
|
| 16 |
+
“`>>`” closes two templates.
|
| 17 |
|
| 18 |
``` cpp
|
| 19 |
template <class T> struct X { };
|
| 20 |
template <int N> struct Y { };
|
| 21 |
X< Y< 1 >> 2 > > x;
|
| 22 |
```
|
| 23 |
|
| 24 |
+
**Change:** Allow dependent calls of functions with internal linkage.
|
| 25 |
+
**Rationale:** Overly constrained, simplify overload resolution rules.
|
| 26 |
+
**Effect on original feature:** A valid C++03 program could get a
|
| 27 |
+
different result than this International Standard.
|
|
|
|
| 28 |
|