tmp/tmpaiuitlhf/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Non-local use of TU-local entities <a id="depr.local">[[depr.local]]</a>
|
| 2 |
+
|
| 3 |
+
A declaration of a non-TU-local entity that is an exposure
|
| 4 |
+
[[basic.link]] is deprecated.
|
| 5 |
+
|
| 6 |
+
[*Note 1*: Such a declaration in an importable module unit is
|
| 7 |
+
ill-formed. — *end note*]
|
| 8 |
+
|
| 9 |
+
[*Example 1*:
|
| 10 |
+
|
| 11 |
+
``` cpp
|
| 12 |
+
namespace {
|
| 13 |
+
struct A {
|
| 14 |
+
void f() {}
|
| 15 |
+
};
|
| 16 |
+
}
|
| 17 |
+
A h(); // deprecated: not internal linkage
|
| 18 |
+
inline void g() {A().f();} // deprecated: inline and not internal linkage
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
— *end example*]
|
| 22 |
+
|