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

You can, but the difficulty, I think, is that this clean separation of pointer types exists along with naked pointers, including void*. That is, C++11 still carries the legacy of C's free-for-all, so the kinds of guarantees that one could get from a C++ compiler - even with baked in knowledge of unique_ptr, shared_ptr and weak_ptr - are going to be limited.


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

Search: