This commit is contained in:
2025-10-25 03:02:53 +03:00
commit 043225d523
3416 changed files with 681196 additions and 0 deletions

20
cppdraft/depr/local.md Normal file
View File

@@ -0,0 +1,20 @@
[depr.local]
# Annex D (normative) Compatibility features [[depr]](./#depr)
## D.2 Non-local use of TU-local entities [depr.local]
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/future.tex#L21)
A declaration of a non-TU-local entity that is an exposure ([[basic.link]](basic.link "6.7Program and linkage"))
is deprecated[.](#1.sentence-1)
[*Note [1](#note-1)*:
Such a declaration in an importable module unit is ill-formed[.](#1.sentence-2)
— *end note*]
[*Example [1](#example-1)*: namespace {struct A {void f() {}};} A h(); // deprecated: not internal linkageinline void g() {A().f();} // deprecated: inline and not internal linkage — *end example*]