Title
Transitivity of using-directives versus qualified lookup
Status
cd2
Section
9.8.4 [namespace.udir]
Submitter
Michael Wong

Created on 2009-10-19.00:00:00 last changed 178 months ago

Messages

Date: 2010-03-15.00:00:00

[Voted into WP at March, 2010 meeting.]

Date: 2009-10-15.00:00:00

Proposed resolution (October, 2009):

Change 9.8.4 [namespace.udir] paragraph 4 as follows:

The For unqualified lookup (6.5.3 [basic.lookup.unqual]), the using-directive is transitive: if a scope contains a using-directive that nominates a second namespace that itself contains using-directives, the effect is as if the using-directives from the second namespace also appeared in the first. [Note: For qualified lookup, see 6.5.5.3 [namespace.qual]. —end note] [Example:...
Date: 2009-10-19.00:00:00

According to 9.8.4 [namespace.udir] paragraph 4,

The using-directive is transitive: if a scope contains a using-directive that nominates a second namespace that itself contains using-directives, the effect is as if the using-directives from the second namespace also appeared in the first.

This is true only for unqualified lookup; the algorithm in 6.5.5.3 [namespace.qual] paragraph 2 gives different results (the transitive closure terminates when a declaration of the name being looked up is found).

History
Date User Action Args
2010-03-29 00:00:00adminsetmessages: + msg2693
2010-03-29 00:00:00adminsetstatus: ready -> cd2
2009-11-08 00:00:00adminsetmessages: + msg2355
2009-10-19 00:00:00admincreate