
5 Mar
2010
5 Mar
'10
4:30 p.m.
It's really a replacement for the common idiom: using std::swap; swap(a,b); Which enables the use of ADL with a fallback to std::swap. Unfortunately, there are a number of compilers that choke on that idiom. boost::swap abstracts the idiom in a more portable way (and adds support for arrays).