|
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.
>
> #ifdef BOOST_HAS_RVALUE_REFS
> 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
-- 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk