Boost logo

Boost Users :

Subject: Re: [Boost-users] upgrade_to_unique_lock doesn't compile with vc2010
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2010-06-01 02:48:54


Braden McDaniel <braden_at_[hidden]> writes:

> Using Boost 1.43, this program:
>
> # include <boost/thread.hpp>
>
> int main()
> {
> boost::shared_mutex mutex;
> boost::upgrade_lock<boost::shared_mutex> lock(mutex);
> boost::upgrade_to_unique_lock<boost::shared_mutex> write_lock(lock);
> }
>
> ... produces this error when compiled with Visual C++ 2010:

That is trac issue 2501. It was fixed post 1.43, so should be in 1.44.

Anthony

-- 
Author of C++ Concurrency in Action     http://www.stdthread.co.uk/book/
just::thread C++0x thread library             http://www.stdthread.co.uk
Just Software Solutions Ltd       http://www.justsoftwaresolutions.co.uk
15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net