|
Boost : |
From: François Duranleau (duranlef_at_[hidden])
Date: 2007-09-26 13:51:35
On Wed, 26 Sep 2007, Joseph Gauterin wrote:
> As discussed previously on the mailing list with David Abrahams and
> Steve Watanabe, I've written a swap function for boost which uses
> argument dependent lookup (aka koenig lookup), encapsulating the
> idiom:
>
> using std::swap;
> swap(a,b);
>
> It can currently be found at
> 'http://www.josephgauterin.myzen.co.uk/swap.zip' as I don't have SVN
> write access.
>
> Currently, I only have access to MSVC8.0 - I'd be grateful if people
> with access to other compilers could test this (bjam in the test
> directory), in paticular I believe it may not work correctly with gcc
> < 3.2 and MSVC6.0.
I tried with gcc-4.0.2: no problems.
> I'd also be grateful for any comments or constructive criticism.
In a few words: I am now already using it ;)
-- Francois Duranleau
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk