Files
cppdraft_translate/cppdraft/depr/local.md
2025-10-25 03:02:53 +03:00

21 lines
722 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[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*]