Boost logo

Boost :

From: Moore, Paul (Paul.Moore_at_[hidden])
Date: 1999-12-21 04:46:20

From: Alan Griffiths [mailto:alan_at_[hidden]]
> However, there is a specific exclusion that means a class member is
> matched without even considering argument dependent (Koenig) name
> lookup...
> (3.4.2 Argument-dependent name lookup - 2)
> . . .
> "If the ordinary unqualified lookup of the name finds the
> declaration of a class member function, the associated
> namespaces are not considered."
> > But I'm working on the basis that Janet's code above, even without
> > the using std::swap, works whatever namespace a is in.
> Because of the above Janet has to explicitly pull std::swap into the
> current scope. (Otherwise only C::swap is considered.)

Ah. I'd missed the fact that we had moved on from abs() (which is not a
member) to swap (which is, or is implemented in terms of one).

Ignore me :-)


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