Boost logo

Boost Users :

Subject: Re: [Boost-users] lockfree::spsc_queue & move semantics
From: quang.trinh_at_[hidden]
Date: 2014-11-15 12:48:50


------Original Message------
From: Bjorn Reese
Sender: Boost-users
To: boost-users_at_[hidden]
ReplyTo: boost-users_at_[hidden]
Subject: Re: [Boost-users] lockfree::spsc_queue & move semantics
Sent: Nov 10, 2014 2:39 PM

On 11/09/2014 09:49 PM, Thomas Danckaert wrote:
> I'd like to use a spsc_queue of unique_ptr's to bigger objects, to
> transfer ownership between threads. That way, I can create/allocate an

This limitation inherited from atomic, and I am afraid that it is a
bit more complicated than adding a move constructor. Fortunately, there
is a C++ proposal to address the problem:

   http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4058.pdf

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Sent from my BlackBerry device on the Rogers Wireless Network


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net