Skip to content

Commit 4f02d29

Browse files
committed
[namespace.def.general] Clarify inline namespaces
Highlight 'innermost enclosing' namespace, and remove unneeded mechanism of inserting a using-directive.
1 parent 930dd54 commit 4f02d29

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

source/declarations.tex

+3-5
Original file line numberDiff line numberDiff line change
@@ -7218,12 +7218,10 @@
72187218

72197219
\pnum
72207220
Members of an inline namespace can be used in most respects as though they were members
7221-
of the enclosing namespace. Specifically, the inline namespace and its enclosing
7221+
of the innermost enclosing namespace. Specifically, the inline namespace and its enclosing
72227222
namespace are both added to the set of associated namespaces used in
7223-
argument-dependent lookup\iref{basic.lookup.argdep} whenever one of them is,
7224-
and a \grammarterm{using-directive}\iref{namespace.udir} that names the inline
7225-
namespace is implicitly inserted into the enclosing namespace as for an unnamed
7226-
namespace\iref{namespace.unnamed}. Furthermore, each
7223+
argument-dependent lookup\iref{basic.lookup.argdep} whenever one of them is.
7224+
Furthermore, each
72277225
member of the inline namespace can subsequently be partially
72287226
specialized\iref{temp.spec.partial}, explicitly
72297227
instantiated\iref{temp.explicit}, or explicitly specialized\iref{temp.expl.spec} as

0 commit comments

Comments
 (0)