Original Post
Is there (in C++) a way to find, for a given reference or pointer to an object, an integer that at least during the lifetime of the object uniquely identifies it? I understand that you can't just use the pointer value (cast to int), because when using multiple inheritance, pointers of different static types to the same object can have different values. I wonder if this is possible at all.