[Boost-bugs] [Boost C++ Libraries] #10637: Certain thread unit tests fail to compile on Xcode 6

Subject: [Boost-bugs] [Boost C++ Libraries] #10637: Certain thread unit tests fail to compile on Xcode 6
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-08 18:54:57


#10637: Certain thread unit tests fail to compile on Xcode 6
------------------------------+----------------------
 Reporter: nat@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.56.0 | Severity: Problem
 Keywords: tests |
------------------------------+----------------------
 {{{
 ./b2 toolset=darwin variant=release address-model=32 architecture=x86
 -sNO_BZIP2=1 cxxflags=-Wno-c99-extensions cxxflags=-Wno-variadic-macros
 cxxflags=-Wno-unused-function cxxflags=-Wno-unused-const-variable
 libs/thread/test//async__async_p libs/thread/test//async__async_executor_p
 libs/thread/test//promise__set_rvalue_at_thread_exit_p

 ...
 darwin.compile.c++
 bin.v2/libs/thread/test/async__async_p.test/darwin-4.2.1/release/address-
 model-32/architecture-x86/threading-multi/sync/futures/async/async_pass.o
 libs/thread/test/sync/futures/async/async_pass.cpp:129:10: error: calling
 a private constructor of class 'std::__1::unique_ptr<int,
 std::__1::default_delete<int> >'
   return boost::move(r);
          ^
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2464:5:
 note: declared private here
     unique_ptr(unique_ptr&);
     ^
 }}}

 {{{
 darwin.compile.c++
 bin.v2/libs/thread/test/async__async_executor_p.test/darwin-4.2.1/release
 /address-model-32/architecture-x86/threading-
 multi/sync/futures/async/async_executor_pass.o
 In file included from
 libs/thread/test/sync/futures/async/async_executor_pass.cpp:34:
 In file included from ./boost/thread/executors/basic_thread_pool.hpp:19:
 In file included from ./boost/thread/csbl/vector.hpp:18:
 ./boost/container/vector.hpp:1526:72: warning: unused parameter 'last'
 [-Wunused-parameter]
    iterator insert(const_iterator pos, size_type num, InIt first, InIt
 last)
                                                                        ^
 libs/thread/test/sync/futures/async/async_executor_pass.cpp:127:10: error:
 calling a private constructor of class 'std::__1::unique_ptr<int,
 std::__1::default_delete<int> >'
   return boost::move(r);
          ^
 }}}

 {{{
 darwin.compile.c++
 bin.v2/libs/thread/test/promise__set_rvalue_at_thread_exit_p.test/darwin-4.2.1/release
 /address-model-32/architecture-x86/threading-multi/syn\
 c/futures/promise/set_rvalue_at_thread_exit_pass.o
 In file included from
 libs/thread/test/sync/futures/promise/set_rvalue_at_thread_exit_pass.cpp:23:
 ./boost/thread/future.hpp:687:24: error: calling a private constructor of
 class 'std::__1::unique_ptr<int, std::__1::default_delete<int> >'
                 return boost::move(*result);
                        ^
 ./boost/thread/future.hpp:2092:25: note: in instantiation of member
 function 'boost::detail::shared_state<std::__1::unique_ptr<int,
 std::__1::default_delete<in\
 t> > >::get' requested here
             future_(new detail::shared_state<R>()),
                         ^
 }}}

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