Quote:Original post by SiCrane
A pointer converted to an integer of sufficient size (if any such exists on the implementation) and back to the same pointer type will have its original value
Which is all the OP needs; for that to work, distinct pointers must map to distinct integers, and integers have the necessary ordering properties for the set.