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

This was just a workaround for the lack of move constructors.

The real problem with auto_ptr is that if anything emits a call to auto_ptr destructor at the point where the object pointed to is incomplete (forward-declared), the destructor code won't run, only memory would be freed.



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

Search: