Boost logo

Boost :

Subject: Re: [boost] [move] explicit moving from a rvalue
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2012-03-26 16:15:56


El 26/03/2012 21:42, Vicente J. Botet Escriba escribió:
> Hi Ion,
>
> With the current emulation of move semantics of Boost.Thread using
> Boost.move, I have a case that I would like to make working in a
> portable way
>
> boost::thread t = boost::thread( MoveOnly());
>
> The library declares the template move constructor from a movable
> callable as as follows
>
> template <class F>
> explicit thread(boost::rv<F>& f);

Why is the constructor explicit?

Ion


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk