Boost logo

Boost :

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


2013/10/25 Peter Dimov <lists_at_[hidden]>

> For this, you don't seem to need atomic<intrusive_ptr> though; atomic<T*>
> works just as well, doesn't it?
>

yes, I could use atomic<T*> but the other code tracks T* in intrusive_ptr<
T > and it looks a little bit awkward if I release a raw-ponter from a
smart-pointer in order to store it in a container.


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