Boost logo

Boost :

Subject: Re: [boost] [thread] locks.hpp double declaration of unique_lock(unique_lock&& other)
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2009-01-21 12:35:27

"vicente.botet" <vicente.botet_at_[hidden]> writes:

> Hi in lines 248-255 of the file boost/thread/locks.hpp we found the unique_lock(unique_lock&& other) declaration twice one withoth explicit and defined and the other with explicit an undefined.
> unique_lock(unique_lock&& other):
> m(other.m),is_locked(other.is_locked)
> {
> other.is_locked=false;
> other.m=0;
> }
> explicit unique_lock(upgrade_lock<Mutex>&& other);
> Could you say me why this is nesded?

It's a typo.


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

Boost list run by bdawes at, gregod at, cpdaniel at, john at