[Boost-bugs] [Boost C++ Libraries] #6141: Compilation error when boost.thread and boost.move are used together

Subject: [Boost-bugs] [Boost C++ Libraries] #6141: Compilation error when boost.thread and boost.move are used together
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-18 11:39:22


#6141: Compilation error when boost.thread and boost.move are used together
------------------------------+---------------------------------------------
 Reporter: admin@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 Thread component has the definition "move" in
 boost/thread/detail/move.hpp, but new version of library contains the
 global description of "move" semantics in boost.move. It gives the
 conflict at compilation "ambiguous call to overloaded function".
 It is a code reproduces the given problem.
 {{{
 #include <boost/thread.hpp>
 #include <boost/move/move.hpp>

 void func()
 {
     boost::shared_mutex mutex;
     boost::upgrade_lock<boost::shared_mutex>
 _upgrade_lock(mutex);
     boost::upgrade_to_unique_lock<boost::shared_mutex>
 _unique_lock(_upgrade_lock); // compilation error
 }

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6141>
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:07 UTC