
"vicente.botet" <vicente.botet@wanadoo.fr> writes:
----- Original Message ----- From: "Anthony Williams" <anthony.ajw@gmail.com> To: <boost@lists.boost.org> Sent: Monday, May 17, 2010 10:54 PM Subject: Re: [boost] [Boost][Thread] Non-copyable boost::thread
"Belcourt, Kenneth" <kbelco@sandia.gov> writes:
Vicente is right that I meant boost::move and boost::thread.
boost::move is overloaded for boost::thread and anything else that uses boost::thread_move, so the above should "just work".
See libs/thread/test/test_thread_move.cpp and libs/thread/test/test_thread_move_return.cpp
Since Boost.Thread has it's own partial move implementation in boost::detail::thread_move, it seems that some work is necessary to integrate (or re-implement) thread_move in terms of boost::move. That's why I thought I'd ping Anthony and see if this is even worth considering.
Yes, there's a bit of work necessary to integrate Boost.Thread move support and Boost.Move, but it should still support move semantics through its own mechanism in the mean time.
Anthony, where is documented the boost::move function, I don't reach to find it?
Missing. I guess I never wrote it. Added on trunk. Anthony -- Author of C++ Concurrency in Action http://www.stdthread.co.uk/book/ just::thread C++0x thread library http://www.stdthread.co.uk Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976