tmp/tmpjteopr11/{from.md → to.md}
RENAMED
|
@@ -5,14 +5,18 @@
|
|
| 5 |
**Effect on original feature:** Valid C++11 code may fail to compile or
|
| 6 |
may change meaning in this revision of C++. For example, the following
|
| 7 |
code is valid both in C++11 and in this revision of C++, but the macro
|
| 8 |
invocation produces different outcomes because the single quotes delimit
|
| 9 |
a *character-literal* in C++11, whereas they are digit separators in
|
| 10 |
-
this revision of C++.
|
|
|
|
|
|
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
#define M(x, ...) __VA_ARGS__
|
| 14 |
int x[2] = { M(1'2,3'4, 5) };
|
| 15 |
// int x[2] = { 5 \ \ \ \ \ } --- C++11{}
|
| 16 |
// int x[2] = { 3'4, 5 } --- this revision of C++{}
|
| 17 |
```
|
| 18 |
|
|
|
|
|
|
|
|
|
| 5 |
**Effect on original feature:** Valid C++11 code may fail to compile or
|
| 6 |
may change meaning in this revision of C++. For example, the following
|
| 7 |
code is valid both in C++11 and in this revision of C++, but the macro
|
| 8 |
invocation produces different outcomes because the single quotes delimit
|
| 9 |
a *character-literal* in C++11, whereas they are digit separators in
|
| 10 |
+
this revision of C++.
|
| 11 |
+
|
| 12 |
+
[*Example 1*:
|
| 13 |
|
| 14 |
``` cpp
|
| 15 |
#define M(x, ...) __VA_ARGS__
|
| 16 |
int x[2] = { M(1'2,3'4, 5) };
|
| 17 |
// int x[2] = { 5 \ \ \ \ \ } --- C++11{}
|
| 18 |
// int x[2] = { 3'4, 5 } --- this revision of C++{}
|
| 19 |
```
|
| 20 |
|
| 21 |
+
— *end example*]
|
| 22 |
+
|