Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-27 09:33:02

Joaqu?n M? L?pez Mu?oz wrote:

>> IIRC, the 'arg' visible via using is considered to be declared in the
>> nearest namespace enclosing both mpl_ and boost::mpl -- which is global
>> namespace. So boost::arg hides mpl_::arg. For explicit mpl::aux, the name
>> lookup ignores the 'boost' namespace.
> Never heard of that rule. Do you happen to know where in the std can I
> learn more about it?

The first rule is 7.3.4/1: During unqualified name lookup, names appear as
if they were declared in the nearest enclosing namespace which contains
both the using-directive and the nominated namespace.

The second rule is Given X::m ... let S be the set of all
declarations of m in X and the the transitive closure of all namespaces
nominated by using directives in X ...
So, for mpl::X, only mpl and mpl_ are searched, but not boost.


Boost list run by bdawes at, gregod at, cpdaniel at, john at