3 ms·
For some reason, I thought equality and inequality pointer comparisons required pointers to be in the same object. It's actually only the relational operators t
by jcranmer 6y ago
For some reason, I thought equality and inequality pointer comparisons required pointers to be in the same object. It's actually only the relational operators that are undefined if not in the same object. (Although I believe most compilers will treat them as unspecified instead of undefined).