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

Smart pointers use a lot of memory and some implementations, like boost::shared_ptr are heap based. One thing I want from C++ is efficiency, so I don't subscribe to the recently popular idea of using smart pointers everywhere. A Java reference uses 32 bits even on a 64 bit machine (below 32GB). A shared_ptr uses 4 times that (the first one does).


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

Search: