Boost logo

Boost Users :

From: Galante Michele (M.Galante_at_[hidden])
Date: 2002-09-26 10:50:39


> Argument-dependent lookup will ensure that any 'swap' functions in the
> namespaces used by 'T' will be included in the set of known swap
functions,
> along with std::swap. Overloading and partial ordering of function
templates
> will then take over to ensure that the appropriate swap(a, b) will be
called
> (even if it is boost::swap).

I did not know this. I suppose this is the "Koenig lookup" that Steve
mentions in his reply.
I've tried this and it works with GCC 3.1 but unfortunately not with BCC 5.6
(so I think it is a Borland bug).

Thank you Steve and Doug.

Michele Galante
Zucchetti Centro Sistemi s.p.a.
m.galante_at_[hidden]


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net