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