Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-04-12 12:03:25


Frank Mori Hess:

> Maybe it was just my compiler, but I've had problems in the past with
> member swap functions breaking ADL for swap used inside the class. IIRC,
> it would find the member swap function and stop there, never doing ADL.

This is standard-conforming. You've forgotten the using std::swap
declaration which reenables ADL by making a nonmember visible in the current
scope.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk