P
pauldepstein
Suppose
const int& i = 7;
const int& j = 7;
Is i==j true? My compiler says yes. On the other hand, as I
understand it, equality of references means that the addresses being
referenced are identical. Hence, as I understand it, it is quite
possible that the integer 7 is being represented at two different
addresses, and that two different addresses contain a representation
of 7 and so i==j may be false. Is this correct?
I'm not clear on the issue of equality of references.
Thanks for your enlightenment.
Paul Epstein
const int& i = 7;
const int& j = 7;
Is i==j true? My compiler says yes. On the other hand, as I
understand it, equality of references means that the addresses being
referenced are identical. Hence, as I understand it, it is quite
possible that the integer 7 is being represented at two different
addresses, and that two different addresses contain a representation
of 7 and so i==j may be false. Is this correct?
I'm not clear on the issue of equality of references.
Thanks for your enlightenment.
Paul Epstein