$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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).