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

What would garbage collection do that C++0x's shared_ptr smart pointer (which is reference counted) doesn't?

I'm not really sure how GC works but using normal memory allocation when you can and reference counted pointers when somebody else is responsible for deallocating objects seems to be adequate and is still high performance...



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

Search: