![]() |
Boost : |
From: Joseph Gauterin (joseph.gauterin_at_[hidden])
Date: 2007-09-26 08:11:43
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'd also be grateful for any comments or constructive criticism.
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk