Boost logo

Boost :

Subject: Re: [boost] storing intrusive_ptr in atomic?!
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2013-10-25 05:22:21


2013/10/25 Giovanni Piero Deretta <gpderetta_at_[hidden]>

> Intrusive_ptr doesn't have tivial copy constructor (how could it have? it
> needs to update the counter), ergo is not trivially copyable and the above
> two point do not apply.
>

but the standard says 'trivially copyable' not 'trivial copy constructor' -
e.g.
the code examples by the standard document gives correct results for
intrusive_ptr (because all criteria
are fulfilled).
does this mean the standard document contains a false wording/examples?


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