$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] [Any] Reference counting
From: Nowake (nowake_at_[hidden])
Date: 2009-04-05 12:32:48
Hi.
Mathias Gaunard wrote:
>Just use shared_ptr.
I create "Holder" what use shared_ptr to share instance.
http://www.boostpro.com/vault/index.php?action=downloadfile&filename=holder.zip&directory=Data%20Structures&
"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.
Regards.
Nowake