Check a object exists or not

Nov 4, 2010 at 9:38am
how can i check that a particular object still exist or it has been deleted ?

Thanks
Nov 4, 2010 at 9:42am
closed account (EzwRko23)
You can't.
Nov 4, 2010 at 1:11pm
@OP
Can you be more specific?
Nov 4, 2010 at 1:37pm
Indeed you can't. The memory itself is not in any way different whether it's used or not.
You have to create such system which knows of this.
Say what is your problem exactly, if you want us to help you to come up with such system.
Nov 4, 2010 at 2:48pm
Weak pointers. But they require that the object's lifetime be managed by shared pointers.

http://www.boost.org/doc/libs/1_44_0/libs/smart_ptr/weak_ptr.htm
Topic archived. No new replies allowed.