Figure 3 - uploaded by Javier López-Gómez
Content may be subject to copyright.
Lookup tables for translation unit and inline namespaces inline namespace NS1 { int PI = 0; std :: string S; } inline namespace NS2 { double PI = 3.14159265 , J; }

Lookup tables for translation unit and inline namespaces inline namespace NS1 { int PI = 0; std :: string S; } inline namespace NS2 { double PI = 3.14159265 , J; }

Context in source publication

Context 1
... that aim, ambiguous lookups must turn into non-ambiguous that return the expected result. As shown in Figure 3, each declared name in the inline namespace (NS1) is made visible not only in the namespace lookup table, but also in that of the enclosing scope (TU). If the same name is made visible by several namespaces (NS1, NS2, . . . ...

Similar publications