
5 Apr
2009
5 Apr
'09
4:32 p.m.
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