on-internet
← Community

Are pointers stable?

Stack Overflow ·

I want to use the actual pointer address (not marked volatile) to an object to uniquely identify the object. Is this a bad thing to do? In general, does system memory management move the objects and hence its address about or is the pointer stable?

Comments

Sign in or sign up to comment and upvote.

No comments yet.