LINUX.ORG.RU

История изменений

Исправление fsb4000, (текущая версия) :

https://eel.is/c++draft/expr.eq#3.1

(3.1)

If one pointer represents the address of a complete object, and another pointer represents the address one past the last element of a different complete object, the result of the comparison is unspecified.

(3.2)

Otherwise, if the pointers are both null, both point to the same function, or both represent the same address, they compare equal.

(3.3)

Otherwise, the pointers compare unequal.

Исходная версия fsb4000, :

https://eel.is/c++draft/expr.eq#3.1

(3.1) If one pointer represents the address of a complete object, and another pointer represents the address one past the last element of a different complete object, the result of the comparison is unspecified. (3.2) Otherwise, if the pointers are both null, both point to the same function, or both represent the same address, they compare equal. (3.3) Otherwise, the pointers compare unequal.