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

Subject: Re: [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-12-05 08:29:30


#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
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by blake-r@…):

 {{{
 --- a/locks.hpp 2011-12-05 12:26:11.650309054 +0400
 +++ b/locks.hpp 2011-12-05 12:27:25.905311415 +0400
 @@ -923,13 +923,13 @@
          upgrade_to_unique_lock& operator=(upgrade_to_unique_lock&);
      public:
          explicit upgrade_to_unique_lock(upgrade_lock<Mutex>& m_):
 - source(&m_),exclusive(move(*source))
 +
 source(&m_),exclusive(move(detail::thread_move_t<upgrade_lock<Mutex>
>(*source)))
          {}
          ~upgrade_to_unique_lock()
          {
              if(source)
              {
 - *source=move(exclusive);
 + *source=move(detail::thread_move_t<unique_lock<Mutex>
>(exclusive));
              }
          }


 }}}

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