You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A prvalue of type “pointer to cv T”, where T is an object type, can be converted to a prvalue of type “pointer to cv void”.
The notation cv denotes the cv-qualification of the pointed-to type, which is used as the cv-qualification of the pointed-to type of the destination type. Consider this example:
int* ptr = 0;
voidconst* vptr = ptr; // #1
#1 is ok but the source type is "pointer to int" while the destination type is "pointer to const void". In this case, the cv-qualification of the pointed-to types are different.
The change might be
A prvalue of type “pointer to cv1 T” can be converted to a prvalue of type “pointer to cv2 void”, where T is an object type and cv2 is the same cv-qualification as, or greater cv-qualification than, cv1.
The text was updated successfully, but these errors were encountered:
[conv.ptr] p2 says
The notation
cv
denotes the cv-qualification of the pointed-to type, which is used as the cv-qualification of the pointed-to type of the destination type. Consider this example:#1
is ok but the source type is "pointer to int" while the destination type is "pointer to const void". In this case, the cv-qualification of the pointed-to types are different.The change might be
The text was updated successfully, but these errors were encountered: