
26 Sep
2007
26 Sep
'07
12:11 p.m.
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.