Boost logo

Boost :

From: Hamish Mackenzie (boost_at_[hidden])
Date: 2002-02-18 17:01:33

On Mon, 2002-02-18 at 21:33, Gary Powell wrote:
> I think that Dave A. mentioned this in the list of things broken in C++98,
> But it deserves a second mention:
> Adding things to the namespace "std"
> i.e.
> template<class A, class B>
> class Myclass;
> namespace std {
> template<class A, class B, class C, class D>
> void swap( Myclass<A, B> &, Myclass<C, D> );
> };

I thought this was solved by Koenig lookup?

using std::swap;
swap( x, y );

Then Koenig lookup will find swap if it is in the namespace that x and y
are in will it not?


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