|
Boost Users : |
Subject: Re: [Boost-users] [utility] swap
From: Joseph Gauterin (joseph.gauterin_at_[hidden])
Date: 2010-03-05 11:30:41
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).
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