Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2501: upgrade_to_unique_lock doesn't compile on C++0x mode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-04 23:09:14
#2501: upgrade_to_unique_lock doesn't compile on C++0x mode
--------------------------------------+-------------------------------------
Reporter: Rodolfo Lima | Owner: viboes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+-------------------------------------
Changes (by viboes):
* owner: anthonyw => viboes
* status: reopened => new
Comment:
I have tried with MSVC 2010 and it works
{{{
#include <boost/thread/shared_mutex.hpp>
#include <boost/thread/locks.hpp>
int main() {
boost::shared_mutex mtx; boost::upgrade_lock<boost::shared_mutex>
lk(mtx);
boost::upgrade_to_unique_lock<boost::shared_mutex> lk2(lk);
return 0;
}
}}}
Could you try again on trunk?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2501#comment:16> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC