tmp/tmptzjiht5b/{from.md → to.md}
RENAMED
|
@@ -60,22 +60,22 @@ void print(int a, int) {
|
|
| 60 |
}
|
| 61 |
```
|
| 62 |
|
| 63 |
In the *function-body*, a *function-local predefined variable* denotes a
|
| 64 |
block-scope object of static storage duration that is implicitly defined
|
| 65 |
-
(see [[basic.scope.
|
| 66 |
|
| 67 |
The function-local predefined variable `__func__` is defined as if a
|
| 68 |
definition of the form
|
| 69 |
|
| 70 |
``` cpp
|
| 71 |
static const char __func__[] = "function-name";
|
| 72 |
```
|
| 73 |
|
| 74 |
had been provided, where *function-name* is an *implementation-defined*
|
| 75 |
string. It is unspecified whether such a variable has an address
|
| 76 |
-
distinct from that of any other object in the program.[^
|
| 77 |
|
| 78 |
``` cpp
|
| 79 |
struct S {
|
| 80 |
S() : s(__func__) { } // OK
|
| 81 |
const char* s;
|
|
|
|
| 60 |
}
|
| 61 |
```
|
| 62 |
|
| 63 |
In the *function-body*, a *function-local predefined variable* denotes a
|
| 64 |
block-scope object of static storage duration that is implicitly defined
|
| 65 |
+
(see [[basic.scope.block]]).
|
| 66 |
|
| 67 |
The function-local predefined variable `__func__` is defined as if a
|
| 68 |
definition of the form
|
| 69 |
|
| 70 |
``` cpp
|
| 71 |
static const char __func__[] = "function-name";
|
| 72 |
```
|
| 73 |
|
| 74 |
had been provided, where *function-name* is an *implementation-defined*
|
| 75 |
string. It is unspecified whether such a variable has an address
|
| 76 |
+
distinct from that of any other object in the program.[^13]
|
| 77 |
|
| 78 |
``` cpp
|
| 79 |
struct S {
|
| 80 |
S() : s(__func__) { } // OK
|
| 81 |
const char* s;
|