Re: [Boost-bugs] [Boost C++ Libraries] #6207: shared_lock swap compiler error on clang 3.0 c++11

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6207: shared_lock swap compiler error on clang 3.0 c++11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-04 14:46:58


#6207: shared_lock swap compiler error on clang 3.0 c++11
---------------------------+------------------------------------------------
  Reporter: viboes | Owner: viboes
      Type: Bugs | Status: new
 Milestone: Boost 1.49.0 | Component: thread
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords: swap
---------------------------+------------------------------------------------
Changes (by viboes):

  * component: None => thread

Comment:

 Sorry I mean when I add the overloading


 {{{
 #ifndef BOOST_NO_RVALUE_REFERENCES
     template<typename Mutex>
     void swap(shared_lock<Mutex>&& lhs,shared_lock<Mutex>&& rhs)
     {
         lhs.swap(rhs);
     }
     template<typename Mutex>
     void swap(shared_lock<Mutex>& lhs,shared_lock<Mutex>& rhs)
     {
         lhs.swap(rhs);
     }
 #else
     template<typename Mutex>
     void swap(shared_lock<Mutex>& lhs,shared_lock<Mutex>& rhs)
     {
         lhs.swap(rhs);
     }
 #endif
 }}}

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