Subject: Re: [boost] [Any] Reference counting
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-04-05 10:50:42
Michael Howell wrote:
> The attached patch add reference counting "implicit sharing" to Boost.Any. It
> is my first patch to Boost, so it will probably need some changes.
This code is not thread-safe.
Just use shared_ptr.
Also, any is a value type. We do not want it to have reference
semantics. So you'd need to use COW.
The thing about COW is that it is only useful if you copy when you don't
need it. But why copy in the first place if you don't need it?
Hence this is fairly useless, especially since we're getting move
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk