Boost logo

Boost :

Subject: [boost] [Any] Reference counting
From: Nowake (nowake_at_[hidden])
Date: 2009-04-05 12:32:48


Mathias Gaunard wrote:
>Just use shared_ptr.

I create "Holder" what use shared_ptr to share instance.

"Holder" likes boost::any, but this class has several semantics.

- value semantics (like boost::any)
- share semantics (like boost::shared_ptr)
- noncopyable semantics
- reference semantics (reference other object)

and user can create custom containers to fit special class and semantics.


Boost list run by bdawes at, gregod at, cpdaniel at, john at