Re: [Boost-bugs] [Boost C++ Libraries] #2501: upgrade_to_unique_lock doesn't compile on C++0x mode

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: 2009-06-05 16:03:55


#2501: upgrade_to_unique_lock doesn't compile on C++0x mode
-----------------------------------+----------------------------------------
  Reporter: Rodolfo Lima | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: Boost 1.38.0 | Component: thread
   Version: Boost Release Branch | Severity: Problem
Resolution: | Keywords:
-----------------------------------+----------------------------------------

Comment(by Jonathan Wakely <jwakely.boost_at_[hidden]>):

 The second error is because upgrade_lock has no handling for the case when
 BOOST_HAS_RVALUE_REFS is defined. In that case boost::move() returns an
 rvalue reference rather than a boost::thread_move_t, but upgrade_lock can
 only handle the move wrapper, not an rvalue reference.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2501#comment:3>
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:00 UTC