|
Boost Users : |
Subject: Re: [Boost-users] [LockFree] a queue of std::shared_ptr?
From: Brian Budge (brian.budge_at_[hidden])
Date: 2013-02-15 09:48:05
On Feb 14, 2013 11:55 PM, "Chris Herssens" <chris.herssens_at_[hidden]> wrote:
>
> If I define a structure that contains a shared_ptr. Can I put this
structure in a lockfree queue ?
>
No. Any struct with nontrivial member is also nontrivial. Here when I say
nontrivial, I mean that it cannot simply be bitwise copied.
Brian
Brian
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