Pointer-Safe Objects?

Posted by cam on Stack Overflow See other posts from Stack Overflow or by cam
Published on 2010-04-27T12:51:29Z Indexed on 2010/04/27 12:53 UTC
Read the original article Hit count: 384

Filed under:
|

Would it be smart to have a vector in an object with a list of pointers that point to it?

This way when the object is deleted, it could delete all the pointers pointing to it to prevent a null-pointer exception?

© Stack Overflow or respective owner

Related posts about c++

Related posts about pointers