Информация об изменениях

Сообщение Re[52]: Зачем плюс? от 09.01.2019 4:40

Изменено 09.01.2019 7:27 σ

Re[52]: Зачем плюс?
BFE>>>Значение указателя — адрес.
σ>>https://timsong-cpp.github.io/cppwp/n4659/basic.compound#3 :
σ>>Every value of pointer type is one of the following:
σ>> — a pointer to an object or function (the pointer is said to point to the object or function), or
σ>> — a pointer past the end of an object ([expr.add]), or
σ>> — the null pointer value ([conv.ptr]) for that type, or
σ>> — an invalid pointer value.

BFE>И что? Да, указатель указывает на объект, функцию, конец объект или имеет нулевое значение или невалидное значение.


BFE>Из 7.6.2.1/3: речь про операцию взятия адреса:

BFE>

BFE>if the type of the expression is T, the result has type “pointer to T” and is a prvalue that is the address of
BFE>the designated object
(6.6.1) or a pointer to the designated function.


Надо исправить.
Открой Issue тут https://github.com/cplusplus/draft, типа https://github.com/cplusplus/draft/issues/2311
Re[52]: Зачем плюс?
BFE>>>Значение указателя — адрес.
σ>>https://timsong-cpp.github.io/cppwp/n4659/basic.compound#3 :
σ>>Every value of pointer type is one of the following:
σ>> — a pointer to an object or function (the pointer is said to point to the object or function), or
σ>> — a pointer past the end of an object ([expr.add]), or
σ>> — the null pointer value ([conv.ptr]) for that type, or
σ>> — an invalid pointer value.

BFE>И что? Да, указатель указывает на объект, функцию, конец объект или имеет нулевое значение или невалидное значение.


BFE>Из 7.6.2.1/3: речь про операцию взятия адреса:

BFE>

BFE>if the type of the expression is T, the result has type “pointer to T” and is a prvalue that is the address of
BFE>the designated object
(6.6.1) or a pointer to the designated function.


Надо исправить.
Открой Issue тут https://github.com/cplusplus/draft, типа https://github.com/cplusplus/draft/issues/2311
Ну или можешь сразу PR заслать с заменой "the address of the designated object" на "a pointer to the designated object".