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

If your handles are pointer types, you should still use unique_ptr, you just need to give it a custom "deleter". (Of course you should probably still encapsulate this in a function like make_xxx() just to avoid the potential mistake of not supplying the correct deleter everywhere.)


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

Search: