Subject: Re: [boost] [Any] Reference counting
From: Michael Howell (mhowell123_at_[hidden])
Date: 2009-04-05 23:34:30
> I haven't read it, and have looked into atomic numbers, but couldn't find
> the "Boost Way" to do it (except perhaps poking around with shared_ptr
> innards). I wanted to use intrusive counts, since we have control over the
> object we are sharing.
I've found the "Boost Way" to do it: boost::detail::atomic_count. It even does
non-atomic counts if people disable thread-safety.
-- Michael Howell mhowell123_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk