Boost C++ Libraries: Ticket #9341: compile error scoped_thread(move semantics) intel-linux-14.0.1 https://svn.boost.org/trac10/ticket/9341 <pre class="wiki"> Test output: lazy piranha fedora 19 64 C++11 - thread - async__async_p / intel-linux-14.0.1 Rev 86557 / Mon, 04 Nov 2013 03:10:05 +0000 Compile [2013-11-04 10:17:36 UTC]: fail "/home/michael/programming/compilers/intel/composer_xe_2013_sp1.1.106/bin/intel64/icpc" -c -xc++ -std=c++11 -O0 -g -w2 -inline-level=0 -pthread -fPIC -wd1418 -wd193,304,383,444 -wd2415 -wd593,981 -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_THROW_IF_PRECONDITION_NOT_SATISFIED -DBOOST_THREAD_USE_DLL=1 -I".." -c -o "/home/michael/boost_testing/results/boost/bin.v2/libs/thread/test/async__async_p.test/intel-linux-14.0.1/debug/threading-multi/sync/futures/async/async_pass.o" "../libs/thread/test/sync/futures/async/async_pass.cpp" ../boost/thread/detail/move.hpp(299): error: function "boost::scoped_thread&lt;CallableThread&gt;::scoped_thread(const boost::scoped_thread&lt;CallableThread&gt; &amp;) [with CallableThread=boost::join_if_joinable]" (declared at line 123 of "../boost/thread/scoped_thread.hpp") cannot be referenced -- it is a deleted function return boost::forward&lt;T&gt;(t); ^ detected during: instantiation of "boost::thread_detail::decay&lt;T&gt;::type boost::thread_detail::decay_copy(T &amp;&amp;) [with T=boost::scoped_thread&lt;boost::join_if_joinable&gt; &amp;]" at line 265 of "../boost/thread/detail/thread.hpp" instantiation of "boost::thread::thread(F &amp;&amp;) [with F=boost::scoped_thread&lt;boost::join_if_joinable&gt; &amp;]" at line 142 of "../boost/thread/scoped_thread.hpp" instantiation of "boost::scoped_thread&lt;CallableThread&gt;::scoped_thread(F &amp;&amp;, Args &amp;&amp;...) [with CallableThread=boost::join_if_joinable, F=boost::scoped_thread&lt;boost::join_if_joinable&gt; &amp;, Args=&lt;&gt;, &lt;unnamed&gt;=boost::scoped_thread&lt;boost::join_if_joinable&gt;::dummy *]" at line 75 of "/usr/include/c++/4.8.2/bits/stl_construct.h" instantiation of "void std::_Construct(_T1 *, _Args &amp;&amp;...) [with _T1=boost::thread_pool::thread_t, _Args=&lt;boost::scoped_thread&lt;boost::join_if_joinable&gt; &amp;&gt;]" at line 75 of "/usr/include/c++/4.8.2/bits/stl_uninitialized.h" instantiation of "_ForwardIterator std::__uninitialized_copy&lt;_TrivialValueTypes&gt;::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _TrivialValueTypes=false, _InputIterator=boost::scoped_thread&lt;boost::join_if_joinable&gt; *, _ForwardIterator=boost::thread_pool::thread_t *]" at line 117 of "/usr/include/c++/4.8.2/bits/stl_uninitialized.h" instantiation of "_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator=boost::scoped_thread&lt;boost::join_if_joinable&gt; *, _ForwardIterator=boost::thread_pool::thread_t *]" at line 258 of "/usr/include/c++/4.8.2/bits/stl_uninitialized.h" instantiation of "_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator&lt;_Tp&gt; &amp;) [with _InputIterator=boost::scoped_thread&lt;boost::join_if_joinable&gt; *, _ForwardIterator=boost::thread_pool::thread_t *, _Tp=boost::thread_pool::thread_t]" at line 1142 of "/usr/include/c++/4.8.2/bits/stl_vector.h" instantiation of "std::vector&lt;_Tp, _Alloc&gt;::pointer std::vector&lt;_Tp, _Alloc&gt;::_M_allocate_and_copy(std::vector&lt;_Tp, _Alloc&gt;::size_type={std::size_t={unsigned long}}, _ForwardIterator, _ForwardIterator) [with _Tp=boost::thread_pool::thread_t, _Alloc=std::allocator&lt;boost::thread_pool::thread_t&gt;, _ForwardIterator=boost::scoped_thread&lt;boost::join_if_joinable&gt; *]" at line 75 of "/usr/include/c++/4.8.2/bits/vector.tcc" instantiation of "void std::vector&lt;_Tp, _Alloc&gt;::reserve(std::vector&lt;_Tp, _Alloc&gt;::size_type={std::size_t={unsigned long}}) [with _Tp=boost::thread_pool::thread_t, _Alloc=std::allocator&lt;boost::thread_pool::thread_t&gt;]" at line 122 of "../boost/thread/thread_pool.hpp" ../boost/thread/detail/thread.hpp(117): error: call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function type f(); ^ detected during: instantiation of "void boost::detail::thread_data&lt;F&gt;::run() [with F=boost::scoped_thread&lt;boost::join_if_joinable&gt;]" at line 99 implicit generation of "boost::detail::thread_data&lt;F&gt;::~thread_data() [with F=boost::scoped_thread&lt;boost::join_if_joinable&gt;]" at line 99 instantiation of class "boost::detail::thread_data&lt;F&gt; [with F=boost::scoped_thread&lt;boost::join_if_joinable&gt;]" at line 99 instantiation of "boost::detail::thread_data&lt;F&gt;::thread_data(F &amp;&amp;) [with F=boost::scoped_thread&lt;boost::join_if_joinable&gt;]" at line 24 of "../boost/thread/pthread/thread_heap_alloc.hpp" instantiation of "T *boost::detail::heap_new&lt;T,A1&gt;(A1 &amp;&amp;) [with T=boost::detail::thread_data&lt;boost::scoped_thread&lt;boost::join_if_joinable&gt;&gt;, A1=boost::scoped_thread&lt;boost::join_if_joinable&gt;]" at line 214 [ 4 instantiation contexts not shown ] instantiation of "_ForwardIterator std::__uninitialized_copy&lt;_TrivialValueTypes&gt;::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _TrivialValueTypes=false, _InputIterator=boost::scoped_thread&lt;boost::join_if_joinable&gt; *, _ForwardIterator=boost::thread_pool::thread_t *]" at line 117 of "/usr/include/c++/4.8.2/bits/stl_uninitialized.h" instantiation of "_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator=boost::scoped_thread&lt;boost::join_if_joinable&gt; *, _ForwardIterator=boost::thread_pool::thread_t *]" at line 258 of "/usr/include/c++/4.8.2/bits/stl_uninitialized.h" instantiation of "_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator&lt;_Tp&gt; &amp;) [with _InputIterator=boost::scoped_thread&lt;boost::join_if_joinable&gt; *, _ForwardIterator=boost::thread_pool::thread_t *, _Tp=boost::thread_pool::thread_t]" at line 1142 of "/usr/include/c++/4.8.2/bits/stl_vector.h" instantiation of "std::vector&lt;_Tp, _Alloc&gt;::pointer std::vector&lt;_Tp, _Alloc&gt;::_M_allocate_and_copy(std::vector&lt;_Tp, _Alloc&gt;::size_type={std::size_t={unsigned long}}, _ForwardIterator, _ForwardIterator) [with _Tp=boost::thread_pool::thread_t, _Alloc=std::allocator&lt;boost::thread_pool::thread_t&gt;, _ForwardIterator=boost::scoped_thread&lt;boost::join_if_joinable&gt; *]" at line 75 of "/usr/include/c++/4.8.2/bits/vector.tcc" instantiation of "void std::vector&lt;_Tp, _Alloc&gt;::reserve(std::vector&lt;_Tp, _Alloc&gt;::size_type={std::size_t={unsigned long}}) [with _Tp=boost::thread_pool::thread_t, _Alloc=std::allocator&lt;boost::thread_pool::thread_t&gt;]" at line 122 of "../boost/thread/thread_pool.hpp" compilation aborted for ../libs/thread/test/sync/futures/async/async_pass.cpp (code 2) </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9341 Trac 1.4.3 viboes Mon, 04 Nov 2013 18:32:58 GMT owner, status changed https://svn.boost.org/trac10/ticket/9341#comment:1 https://svn.boost.org/trac10/ticket/9341#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Tue, 12 Nov 2013 18:35:20 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9341#comment:2 https://svn.boost.org/trac10/ticket/9341#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/86658" title="Thread: merge dummy replacement to fix #9341.">[86658]</a>) Thread: merge dummy replacement to fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9341" title="#9341: Bugs: compile error scoped_thread(move semantics) intel-linux-14.0.1 (closed: fixed)">#9341</a>. </p> Ticket viboes Tue, 12 Nov 2013 18:37:38 GMT milestone changed https://svn.boost.org/trac10/ticket/9341#comment:3 https://svn.boost.org/trac10/ticket/9341#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> Ticket