Re: [Boost-bugs] [Boost C++ Libraries] #2380: boost::move from lvalue does not work with gcc

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2380: boost::move from lvalue does not work with gcc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-11 07:25:13


#2380: boost::move from lvalue does not work with gcc
---------------------------+------------------------------------------------
  Reporter: anonymous | Owner: anthonyw
      Type: Bugs | Status: closed
 Milestone: Boost 1.44.0 | Component: thread
   Version: Boost 1.44.0 | Severity: Problem
Resolution: fixed | Keywords:
---------------------------+------------------------------------------------
Changes (by anonymous):

  * version: Boost 1.35.0 => Boost 1.44.0
  * milestone: Boost 1.37.0 => Boost 1.44.0

Comment:

 Got the same problem on boost 1_44_0 on MacOSX 10.6.4 gcc 4.2.1


 $ g++ test_thread_move.cpp -lboost_thread

 test_thread_move.cpp: In function ‘boost::thread make_thread1()’:

 test_thread_move.cpp:31: error: no matching function for call to
 â€˜boost::thread::thread(boost::thread)’

 /usr/local/include/boost/thread/detail/thread.hpp:215: note: candidates
 are:

 boost::thread::thread(boost::detail::thread_move_t<boost::thread>)

 /usr/local/include/boost/thread/detail/thread.hpp:113: note:
 boost::thread::thread(boost::thread&)

 test_thread_move.cpp:31: error: initializing temporary from result of
 â€˜boost::thread::thread(boost::detail::thread_move_t<boost::thread>)’


 $ uname -a

 Darwin macbook-pro.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23
 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386


 $ g++ -v

 Using built-in specs.

 Target: i686-apple-darwin10

 Configured with: /var/tmp/gcc/gcc-5664~50/src/configure --disable-checking
 --enable-werror --prefix=/usr --
 mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-
 transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-
 slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-
 darwin10- --host=x86_64-apple-darwin10 --
 target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1

 Thread model: posix

 gcc version 4.2.1 (Apple Inc. build 5664)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2380#comment:2>
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:04 UTC