Boost logo

Boost :

Subject: Re: [boost] [thread] synchronized_value: value and move semantics
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-09-24 13:19:22


On Tuesday 24 September 2013 18:12:31 Klaim - Joël Lamotte wrote:
> On Thu, Jun 27, 2013 at 8:48 PM, Vicente J. Botet Escriba <
>
> vicente.botet_at_[hidden]> wrote:
> > I could change it if there is an agreement of the Boost community.
>
> (sorry for the delay, I missed this one)
>
> I agree that it should be changed, in synchronized_value the value part is
> not necessary, and very verbose.

Do we plan to extract it from Boost.Thread to Boost.Sync? If so, the rename
could be done in the process.

> I have another question:
> Why is there no move operator? I see a move constructor but no move
> operator, but I suppose it could be implemented if T is movable?
> Or is it not possible?

synchronized_value has an internal mutex, which is not movable. But I think
you should be able to move the contained value using the synchronize()
functions.


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