By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,965 Members | 2,043 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,965 IT Pros & Developers. It's quick & easy.

reference count

P: n/a
Dear All,

Anybody can recommend me a good, easy-to-use, popular software tool to
automatically count the number of the references of an object, and when
the counter reduce to zero, it can automatically delete it. I also
think maybe some smart pointer can implement it. Am I right?

Thanks for your suggestion.

Shuisheng

Sep 22 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
shuisheng wrote:
Dear All,

Anybody can recommend me a good, easy-to-use, popular software tool to
automatically count the number of the references of an object, and when
the counter reduce to zero, it can automatically delete it. I also
think maybe some smart pointer can implement it. Am I right?
Please see the FAQ:

http://www.parashift.com/c++-faq-lit...html#faq-16.22

Also see boost::shared_ptr (www.boost.org)

Best regards,

Tom

Sep 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.