Re: [Boost-bugs] [Boost C++ Libraries] #4480: OpenVMS patches for compiler issues workarounds

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4480: OpenVMS patches for compiler issues workarounds
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-23 15:55:05


#4480: OpenVMS patches for compiler issues workarounds
----------------------------------+-----------------------------------------
  Reporter: artyomtnk@… | Owner: anthonyw
      Type: Patches | Status: new
 Milestone: Boost 1.44.0 | Component: thread
   Version: Boost 1.43.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------+-----------------------------------------

Comment (by alan.antonuk@…):

 Not sure if you're still looking for the compile errors (these changes
 still seem applicable in boost 1.46.1 on OpenVMS v8.3 on Alpha, with C++
 V7.3-015)

 For the change in the future.hpp file, the errors I get without the fixes
 are:

 {{{
 locks[i]=boost::unique_lock<boost::mutex>(futures[i].future->mutex);
 .................................^
 %CXX-W-REFTEMPORARY, initial value of reference to non-const must be an
           lvalue
 at line number 422 in file BOOST_1_46_1:[boost.thread]future.hpp;1

 locks[i]=boost::unique_lock<boost::mutex>(futures[i].future->mutex);
 ................................^
 %CXX-E-INASPEFUN, "boost::unique_lock<Mutex>
           &boost::unique_lock<Mutex>::operator=(boost::unique_lock<Mutex>
 &)
           [with Mutex=boost::mutex]" is inaccessible
 at line number 422 in file BOOST_1_46_1:[boost.thread]future.hpp;1
 }}}

 The errors in thread_data.hpp:
 {{{
             this_thread::sleep(get_system_time()+rel_time);
 ................................................^
 %CXX-E-NOMATOPRFUN, no operator "+" matches these operands
             operand types are: boost::system_time + const
 boost::system_time
           detected during instantiation of "void
                     boost::this_thread::sleep(const TimeDuration &) [with
                     TimeDuration=boost::system_time]" at line 346 of
                     "BOOST_1_46_1:[boost.thread.detail]thread.hpp;1"
 at line number 138 in file
 BOOST_1_46_1:[boost.thread.pthread]thread_data.hpp;1

         void sleep(const system_time& st)
 .............^
 %CXX-E-SPECALINLTMPFUN, specific definition of inline template function
 must
           precede its first use
 at line number 320 in file
 BOOST_1_46_1:[libs.thread.src.pthread]thread.cpp;1

 }}}

 I haven't been able to repro the error in thread.cpp

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