From: Sohail Somani (sohail_at_[hidden])
Date: 2008-05-27 18:17:59
Anthony Williams wrote:
> Sohail Somani <sohail_at_[hidden]> writes:
>> David Abrahams wrote:
>>> thread_q[i] = boost::thread( some_function );
>> Why doesn't it require std::move or boost::move?
> You only need std::move or boost::move to move an lvalue. If you've
> got an rvalue (such as the temporary in Dave's example),
> move-assignment "just works" in most cases.
> In boost 1.35.0 this is done with a move-emulation trick involving
> conversions to boost::detail::thread_move_t<>, but on trunk it uses
> rvalue references if the compiler supports it.
Ok, that makes sense. I skipped class that day ;-)
-- Sohail Somani http://uint32t.blogspot.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk