Boost logo

Threads-Devel :

From: Anthony Williams (anthony_at_[hidden])
Date: 2008-04-16 10:45:51


Quoting Frank Mori Hess <frank.hess_at_[hidden]>:

> thread/locks.hpp doesn't define any 2-argument free swap functions for the
> lock classes in their enclosing namespace, which can be found by ADL. This
> is needed to make the
>
> using std::swap;
> swap(A, B);
>
> trick work for the lock classes.

That's a good idea. Thanks for the suggestion.

Anthony

-- 
Anthony Williams            | Just Software Solutions Ltd
Custom Software Development | http://www.justsoftwaresolutions.co.uk
Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk