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 Williams            | Just Software Solutions Ltd
Custom Software Development |
Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

Threads-Devel list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at