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

Subject: [Boost-bugs] [Boost C++ Libraries] #2380: boost::move from lvalue does not work with gcc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-10-02 07:44:21


#2380: boost::move from lvalue does not work with gcc
--------------------------+-------------------------------------------------
 Reporter: anonymous | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: Boost 1.37.0 | Component: thread
  Version: Boost 1.35.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 boost::thread make_thread1()
 {
     boost::thread x=make_thread();
     return boost::move(x);
 }

 Compilation of the function above produces the following error with
 gcc-3.4.4 and 4.3.2:

 gcc.compile.c++
 ../../../bin.v2/libs/thread/test/test_thread_move.test/gcc-3.4.4
 /debug/threading-multi/test_thread_move.o
 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)'
 ../../../boost/thread/detail/thread.hpp:200: note: candidates are:
 boost::thread
 ::thread(boost::detail::thread_move_t<boost::thread>)
 ../../../boost/thread/detail/thread.hpp:108: 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>)'

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2380>
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:49:58 UTC