|
Boost : |
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-04-12 13:48:29
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 12 April 2008 12:03 pm, Peter Dimov wrote:
> 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.
Ah, thanks for the tip. I must have left out the "using std::swap" because
none of the swap calls I was using actually resolved to std::swap.
- --
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIAPXu5vihyNWuA4URAv98AKDmECn413J00o5LNTXzTHDtuVo0tgCeML5/
FfJ8qqq6j2dUQkvoFpE6o5k=
=1p5g
-----END PGP SIGNATURE-----
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk