[Boost-bugs] [Boost C++ Libraries] #4071: ASIO library fails with recent Sun Studio compilers

Subject: [Boost-bugs] [Boost C++ Libraries] #4071: ASIO library fails with recent Sun Studio compilers
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-05 20:51:17


#4071: ASIO library fails with recent Sun Studio compilers
----------------------------------------+-----------------------------------
 Reporter: stephen.clamage@… | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: None
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
----------------------------------------+-----------------------------------
 boost/thread/locks.hpp has conditional code applied to all Sun Studio
 compilers, but recent compilers don't produce the right result with the
 workarounds. The workarounds should be restricted to older compilers (a
 one-line change in two places). Here are the diffs:

 --- boost/thread/locks.hpp (revision 61052)
 +++ boost/thread/locks.hpp (working copy)
 @@ -214,7 +214,7 @@
          unique_lock& operator=(unique_lock&);
          unique_lock& operator=(upgrade_lock<Mutex>& other);
      public:
 -#ifdef __SUNPRO_CC
 +#if BOOST_WORKAROUND(__SUNPRO_CC, < 0x5100)
          unique_lock(const volatile unique_lock&);
  #endif
          unique_lock():
 @@ -300,7 +300,7 @@
              return detail::thread_move_t<unique_lock<Mutex> >(*this);
          }

 -#ifdef __SUNPRO_CC
 +#if BOOST_WORKAROUND(__SUNPRO_CC, < 0x5100)
          unique_lock& operator=(unique_lock<Mutex> other)
          {
              swap(other);

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