tmp/tmp38zd2ssz/{from.md → to.md}
RENAMED
|
@@ -10,22 +10,25 @@ ill-formed in this revision of C++.
|
|
| 10 |
right angle brackets. **Rationale:** Considered a persistent but minor
|
| 11 |
annoyance. Template aliases representing non-class types would
|
| 12 |
exacerbate whitespace issues. **Effect on original feature:** Change to
|
| 13 |
semantics of well-defined expression. A valid C++03 expression
|
| 14 |
containing a right angle bracket (“`>`”) followed immediately by another
|
| 15 |
-
right angle bracket may now be treated as closing two templates.
|
| 16 |
-
|
|
|
|
| 17 |
|
| 18 |
``` cpp
|
| 19 |
template <class T> struct X { };
|
| 20 |
template <int N> struct Y { };
|
| 21 |
X< Y< 1 >> 2 > > x;
|
| 22 |
```
|
| 23 |
|
| 24 |
This code is valid in C++03 because “`>>`” is a right-shift operator,
|
| 25 |
but invalid in this revision of C++ because “`>>`” closes two templates.
|
| 26 |
|
|
|
|
|
|
|
| 27 |
**Change:** Allow dependent calls of functions with internal linkage.
|
| 28 |
**Rationale:** Overly constrained, simplify overload resolution rules.
|
| 29 |
**Effect on original feature:** A valid C++03 program can get a
|
| 30 |
different result in this revision of C++.
|
| 31 |
|
|
|
|
| 10 |
right angle brackets. **Rationale:** Considered a persistent but minor
|
| 11 |
annoyance. Template aliases representing non-class types would
|
| 12 |
exacerbate whitespace issues. **Effect on original feature:** Change to
|
| 13 |
semantics of well-defined expression. A valid C++03 expression
|
| 14 |
containing a right angle bracket (“`>`”) followed immediately by another
|
| 15 |
+
right angle bracket may now be treated as closing two templates.
|
| 16 |
+
|
| 17 |
+
[*Example 1*:
|
| 18 |
|
| 19 |
``` cpp
|
| 20 |
template <class T> struct X { };
|
| 21 |
template <int N> struct Y { };
|
| 22 |
X< Y< 1 >> 2 > > x;
|
| 23 |
```
|
| 24 |
|
| 25 |
This code is valid in C++03 because “`>>`” is a right-shift operator,
|
| 26 |
but invalid in this revision of C++ because “`>>`” closes two templates.
|
| 27 |
|
| 28 |
+
— *end example*]
|
| 29 |
+
|
| 30 |
**Change:** Allow dependent calls of functions with internal linkage.
|
| 31 |
**Rationale:** Overly constrained, simplify overload resolution rules.
|
| 32 |
**Effect on original feature:** A valid C++03 program can get a
|
| 33 |
different result in this revision of C++.
|
| 34 |
|