Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

http://www.boost.org/libs/smart_ptr/shared_ptr.htm

Granted, it's not garbage collection, but sometimes you have to write C++ and boost makes that manageable. boost::shared_ptr is based on refcounts, so you need to be aware of cycles and use boost::weak_ptr accordingly.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: